I created a menu item to open multiple Word documents that used to work. Recently it caused Word to give the error message
"The macros in this project are disabled. Please refer to the online help or documentation of the host application to determine how to enable macros."
I originally got around it by adding a pause to the script, but now this no longer works.
I'm using MS Word 2016
Here's an example of the script using Open:
C:\Users\xxx\OneDrive\Documents\Document1.docx
{10000}
C:\Users\xxx\OneDrive\Documents\Document2.docx
Got any ideas to fix this?
Opening Multiple MSWord Documents Disables Word Macros
Pause will not work in Open (or Run).
You could try Type: Command
You could try Type: Command
Code: Select all
Run, C:\Users\xxx\OneDrive\Documents\Document1.docx
Sleep, 1000
Run, C:\Users\xxx\OneDrive\Documents\Document2.docx