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!

Using data in a macro from notepad 2

Status
Not open for further replies.

casg

IS-IT--Management
Jan 27, 2006
13
ES
Hi,
I'd like to feed a macro with data in the notepad,
I've read about CreateObjet in other posts,
but how would it be ?
Where can I find info about methods and properties of the "CreatedObjects"?
The data I want to introduce is thus:
1231
1231
22
2
That's a row of numbers, only.
I'd really appreciate an almost working solution, since I'm rather new in VB and Extraa!

--
thanks
 
You may want to see this FAQ that handles this direcly.

How do I use VB(A) to manipulate attachmate (6.5+)?
faq99-4069

Also, it's effective to add a reference to Attachmate. You do this by going to the VBA editor, clicking Tools>References, then browse to the listing for Attachmate Extra (and your version).

Once you've got a reference you can then set the objects a little differently, but with greatly increased functionallity.

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

This will give you a drop down box when you type "Sess0." that will expose almost all the properties and methods.

Good coding.

calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top