hi, firstly apologies if this is posted in the wrong section, tried to have a guess at which forum it should be posted in and this seems most appropriate.
The company I work for has started using the Citrix platform and Extra has moved across to be used through Citrix. Now, when trying to call my application (Attachmate Extra) I get an error saying activex can't create the object and the debug shows the error on the line trying to call Extra. I assume I need to add some code in to fix this problem?
Here is my code to call Extra
I get the debug on the line:Code:'Get details from Excel dod = Range("D6"): If dod = "" Then MsgBox ("Please input Date of Death and try again"): End dod = Format(dod, "DD/MM/YYYY") Range("F8, F10").Select Selection.ClearContents ' Get the main system object Dim Sessions As Object Dim System As Object Set System = CreateObject("EXTRA.System") ' Gets the system object If (System Is Nothing) Then MsgBox "Could not create the EXTRA System object. Stopping macro playback." Stop End If Set Sessions = System.Sessions If (Sessions Is Nothing) Then MsgBox "Could not create the Sessions collection object. Stopping macro playback." Stop End If '-------------------------------------------------------------------------------- ' Set the default wait timeout value g_hostsettletime = 1500 OldSystemTimeout& = System.TimeoutValue If (g_hostsettletime > OldSystemTimeout) Then System.TimeoutValue = g_hostsettletime End If ' Get the necessary Session Object Dim Sess0 As Object Set Sess0 = System.ActiveSession If (Sess0 Is Nothing) Then MsgBox "Could not create the Session object. Stopping macro playback." Stop End If If Not Sess0.Visible Then Sess0.Visible = True Do While Sess0.Screen.OIA.Xstatus <> 0 DoEvents Loop ' This section of code contains the gubbins Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As Object Dim ScrnChk As String, scrnchk1 As String, ScrnChk2 As String, PFKey As String Set Sys = CreateObject("EXTRA.System") Set Sess = Sys.ActiveSession Set MyScreen = Sess.Screen
Any help would be greatly appreciatedCode:Set System = CreateObject("EXTRA.System") ' Gets the system object
thanks



Reply With Quote