Can you have a command line arg with a workbook?
Macros cannot be run from the Command line.
Place your arguments in a Workbook_Open event in Thisworkbook module.
Or Auto_Open in a standard module.
Gord Dibben MS Excel MVP
On Sun, 14 Jun 2009 08:44:02 -0700, Trefor wrote:
If it possible to read an arg from the command line in VBA?
myworkbook.xls arg1 arg2
I would like to run a certain macro if a certain argument or parameter is
specified.
|