Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to run a macro when I open a particular spreadsheet. I know I
can get a macro to run every single time it opens, but I do not want that. I want to start Excel externally, (from a shortcut) and either load it and run the macro, or load it and not run the macro. I do not see any option to open and run a macro from the command line. Does it exist? Is there another way to pull this off? Phil |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could put data into a text file and read that from
your VBA code. You could use a .bat file to create/modify the file. -- HTH, David McRitchie, Microsoft MVP - Excel My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Phil Smith" wrote in message ... I want to run a macro when I open a particular spreadsheet. I know I can get a macro to run every single time it opens, but I do not want that. I want to start Excel externally, (from a shortcut) and either load it and run the macro, or load it and not run the macro. I do not see any option to open and run a macro from the command line. Does it exist? Is there another way to pull this off? Phil |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Command Line Export | Excel Discussion (Misc queries) | |||
Scripting from command line | Excel Discussion (Misc queries) | |||
How to: Pass Command Line Parameter ??? | Excel Worksheet Functions | |||
macros from command line | Excel Discussion (Misc queries) | |||
Q: command line in OE | Excel Discussion (Misc queries) |