Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA: Moving from Extra! to Reflection 2008 1

Status
Not open for further replies.

rgm33

Technical User
Jul 27, 2006
10
CA
Hi,

Could somebody provide the equivalent code to establish a connection from Excel to Reflection 2008.

Code:
Public System As ExtraSystem
Public Sessions As ExtraSessions
Public Sess0 As ExtraSession
Public MyScn As ExtraScreen

Set System = New ExtraSystem
Set Sessions = System.Sessions
Set Sess0 = System.ActiveSession
Set MyScn = Sess0.Screen

Thanks!
 
I found the solution under:


Set a reference to EXTRACOM and remove the reference from the old Attachmate Library. In my case it was ATTACHMATE EXTRA! 7.1 Object Library. It should show as MISSING in the reference list. Very important to remove the missing reference. Before I removed it, the built in VBA functions like Right(), Left() & Trim() would not work.

After setting and removing references, make these changes to the code.
Code:
Public System As EXTRACOM.ExtraSystem
Public Sessions As EXTRACOM.ExtraSessions
Public Sess0 As EXTRACOM.ExtraSession
Public MyScn As EXTRACOM.ExtraScreen

Set System = New EXTRACOM.ExtraSystem
Set Sessions = System.Sessions
Set Sess0 = System.ActiveSession
Set MyScn = Sess0.Screen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top