M
Microsmith
Hello,
I've written VBA code for a macro that executes when the document is opened.
The Macro sets up a custom menu on the menu bar. The macro depends on a
text file stored in another directory. If the text file exists, one ste of
menus is created. If the text file doesn't exist, a different menu is
created. The macro executes flawlessly when I save it as a normal .doc
document. However, when I save it as a .dot the macro doesn't work when I
close Word and then reopen. If I remove the provision in the macro that
checks the existence of the text file, the menu macros execute fine wether
its saved as a .doc or .dot.
Any suggestions why the macro would work in a .doc but not a .dot document?
Thanks
Microsmith
I've written VBA code for a macro that executes when the document is opened.
The Macro sets up a custom menu on the menu bar. The macro depends on a
text file stored in another directory. If the text file exists, one ste of
menus is created. If the text file doesn't exist, a different menu is
created. The macro executes flawlessly when I save it as a normal .doc
document. However, when I save it as a .dot the macro doesn't work when I
close Word and then reopen. If I remove the provision in the macro that
checks the existence of the text file, the menu macros execute fine wether
its saved as a .doc or .dot.
Any suggestions why the macro would work in a .doc but not a .dot document?
Thanks
Microsmith