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!

Launch a macro from a macro or a VB program

Status
Not open for further replies.

vbdbcoder

Programmer
Nov 23, 2006
246
US
Hello,

What would be the best practice to launch a Sage 300 macro from another Sage 300 macro (or VB program)? The below code does not work.

*******************************************
Private Sub CommandButton1_Click()
Shell "C:\Sage\Sage300\Programs\Macros\TEST.AVB", vbNormalFocus
End Sub

Error is "Invalid procedure call or argument"


Highly Appreciated !
 
Macros are run using the a4wvba.exe program.

a4wvba.exe -r -f "filename".

However, the signon manager needs to be running. If you're running a macro then it already is. If you want to run it from a VB program then you'll need to start up the signon manager.
 
DjangMan,

Thanks it works.

What do the 2 parameters (-r, -f) mean?

Appreciate your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top