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

Passing a parameter from batch file to xls macros

Status
Not open for further replies.

Matsul

IS-IT--Management
May 6, 2002
140
BE
I am calling an excel macro by simply doing;

START C:\auto\prog\macro_~1.xls

I now need to pass the name of the database as this is a variable.

START C:\auto\prog\macro_~1.xls db_name


How would I change the macro to pick up the name ?

 
Have a look at the Command function in the VBA help.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top