Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How to: Pass Command Line Parameter ???
Esteemed Forum Participants and Lurkers:
=============================== Excel 2003 VBA I vaguely recall having done this somewhere in the way distant past ... can I pass a general purpose variable (department name string in this case) as a Command Line Parameter to Excel? Right now I have 6 different workbooks for 6 departments with macros, and I want to consolidate them all into one workbook with 6 shortcuts, where the shortcut provides the department via a Command Line Parameter. Except for the department name and folder path, the Macro is identical for each department. I know I can specify a startup file in the Command Line, but can I use a general purpose parameter? Isn't there some way to fetch the parameter in the Workbook Open event? Is there perhaps an API call that can fetch the command line so that I can extract my parameter? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do i enable the Query Parameter menu option on the External D. | Excel Discussion (Misc queries) | |||
How to pass a workshhet name as a parameter into a subroutine ? | Excel Discussion (Misc queries) | |||
Wildcard parameter in excel | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) | |||
Changing a Parameter Of A Formula | Excel Worksheet Functions |