drrocket5292
Technical User
I just started using Extra Basic this week and have been searching through this forum for all sorts of answers the past couple of days. I'm trying to be able to use Extra in VBA but every time I type the code in to initailize a session I get an error message that says "ActiveX Component Can't create object." Here is my code but its just the same code that you see posted a hundred times in this forum:
Public Sessions As Object
Public System As Object
Public Sess0 As Object
Sub whydontyouwork()
'Extra Objects
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
Set Sessions = System.Sessions
If (Sessions Is Nothing) Then: MsgBox "Could not create the Sessions collection object. Stopping macro playback.": Stop
Set Sess0 = System.ActiveSession
If (Sess0 Is Nothing) Then MsgBox "Could not create the Session object. Stopping macro playback.": Stop
Set Sessions = Nothing
Set System = Nothing
Set Sess0 = Nothing
End Sub
I have searched my computer and every server I have access to and cannot find the Type Library for Extra. Its not in my references in Excel or in the components section either. Clearly I'm new at this so does anyone have any advice on how I can get this to work in Excel? Is there any place to download the type library so that I can just add a reference to it in Excel? I couldnt find it on the Attachmate website. Thanks for the help.
Public Sessions As Object
Public System As Object
Public Sess0 As Object
Sub whydontyouwork()
'Extra Objects
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
Set Sessions = System.Sessions
If (Sessions Is Nothing) Then: MsgBox "Could not create the Sessions collection object. Stopping macro playback.": Stop
Set Sess0 = System.ActiveSession
If (Sess0 Is Nothing) Then MsgBox "Could not create the Session object. Stopping macro playback.": Stop
Set Sessions = Nothing
Set System = Nothing
Set Sess0 = Nothing
End Sub
I have searched my computer and every server I have access to and cannot find the Type Library for Extra. Its not in my references in Excel or in the components section either. Clearly I'm new at this so does anyone have any advice on how I can get this to work in Excel? Is there any place to download the type library so that I can just add a reference to it in Excel? I couldnt find it on the Attachmate website. Thanks for the help.