L
Laura
Hi All,
I have an autonew macro in a couple Word 2003 templates that creates a menu
that is visible when the end user is a document based on that template.
The reason I need to create the menu programmatically is because they have
Adobe Acrobat installed and it keeps trashing menus that I create /out VBA in
the template.
I had set the customization context to the document being created because
this made it appear only when the user was in the document. It works fine on
9 out of 10 computers in our office.
However, on one computer, each time I use the template, when I close the
doc, I get a runtime Error that mentions WinWord.exe and says
"The application has requested the runtime to terminate in an unusual way."
It then immediately kills word and any open docs are closed without saving.
If I set the customization context to NormalTemplate after creating the
menu, I do not get the error. However, that makes my menu disappear. If I
use NormalTemplate all along, the menu then shows in ALL documents. (Not
good.)
For now, I made an AutoClose macro that sets the customization context to
NormalTemplate as they close the document and all is well. BUT I'm wondering
if anyone has seen this? Any ideas what could cause it? Am I even
approaching my menu issue the right way?
Thanks so much.
I have an autonew macro in a couple Word 2003 templates that creates a menu
that is visible when the end user is a document based on that template.
The reason I need to create the menu programmatically is because they have
Adobe Acrobat installed and it keeps trashing menus that I create /out VBA in
the template.
I had set the customization context to the document being created because
this made it appear only when the user was in the document. It works fine on
9 out of 10 computers in our office.
However, on one computer, each time I use the template, when I close the
doc, I get a runtime Error that mentions WinWord.exe and says
"The application has requested the runtime to terminate in an unusual way."
It then immediately kills word and any open docs are closed without saving.
If I set the customization context to NormalTemplate after creating the
menu, I do not get the error. However, that makes my menu disappear. If I
use NormalTemplate all along, the menu then shows in ALL documents. (Not
good.)
For now, I made an AutoClose macro that sets the customization context to
NormalTemplate as they close the document and all is well. BUT I'm wondering
if anyone has seen this? Any ideas what could cause it? Am I even
approaching my menu issue the right way?
Thanks so much.