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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating A Screen Print Macro Please Help

Status
Not open for further replies.

ExtraNewbie

Programmer
Aug 13, 2003
2
US
I am currently using Attachmate EXTRA! version 6.5, and am having problem creating and incorporating a macro that will at the screen print function automatically to the end of a macro. I keep getting line errors. I thought I know everything about macros, apparently not!!

Please Help...Thanks in advance.

JV
 
You mean you want to re-use the code in several macros? Why not just create a seperate macro file and call it from the macros you want to as a last step?

Sub Main
...
...
Stuff here
...
...
rc% = Shell(<Extra Path>\ebrun.exe MyPrintScreenMacro.ebm)
End Sub

This will fire it independently after the main code is run. You will have to have this line at the bottom.

Option 2 would be to put an includes line in the same spot so that the Print Screen code is read into the macro at that location.

Is this on the right track?

If you need further detail, let me know.

calculus
 
That will also come in handy, I guess what I really need is the code for the actual macro, or an example of one.

Where I can just fill in the blanks with the path for my printer i.e. \\CREDIT\cc_sp3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top