I want to write a .bat file that opens Word and executes a macro in Word. I have done this before in Access but can't find anything about it in Word...
Thanks for the suggestions...What I ended up doing was renaming the macro to "AutoExec". In addition, to keep the macro from running whenever Word is openned from the desktop, you change the Target path on the shortcut by adding <space>/m to the end of the path. This prevents any macros from running when the app is ran from the shortcut. However, running the app from a batch file allows the AutoExec macro to execute because it is ran straight from the executable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.