I am using a batch file to launch Outlook and Excel 2007 as follows:
start "" "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE"
start "" "C:\Program Files\Microsoft Office\Office12\EXCEL.EXE"
"C:\Users\username\Documents\Productivity\gtd_active.xlsm"
Both Outlook and Excel contain macros I must enable each time and I am hoping to do this via the command line.
I have tried the following with Excel:
start "" "C:\Program Files\Microsoft Office\Office12\EXCEL.EXE"
"C:\Users\username\Documents\Productivity\gtd_active.xlsm" /mtestMeStartup
to try and start a macro (this does not work, I am still prompted with the "Enable Macros" warning). I had hoped this would automatically trigger the "enable macros" option.
How do I pass an argument (or otherwise) to launch Excel/Outlook from a batch file and automatically enable macros?
Note: this link suggests this might not be possible... :\