I would try, instead, disabling the menu commands in your template, either
manually or through code, once. Absent other weird Add-Ins, they will be
disabled when your template is loaded and not disabled when it is not
loaded.
Otherwise, your code would need to be very careful of the customization
context to avoid acting like a virus and permanently changing the interface.
If you would specify which menus/toolbars you are disabling someone here can
probably take a guess at what your code looks like. It will probably have
the term ".enabled = "false"" in it.
If you are hiding the standard or formatting toolbars your code would have
".visible = "false"" in it as well. You would want your exit code to reset
these to what they were when you started your code. These settings could be
saved in variables.
What follows is some code from one of my Add-Ins that changes toolbar
settings.
Word.CommandBars("MyTools MenuBar Chas").Visible = False
Word.CommandBars("MyTools MenuBar Chas").Enabled = False
Word.CommandBars("Formatting Toolbar Holder Chas").Visible = False
Word.CommandBars("Formatting Toolbar Holder Chas").Enabled = False
With CommandBars("Macros")
.Left = 521
.Top = 23
.Height = 28
.Visible = True
.Position = 1
End With
With CommandBars("CDEVTools Kenyon")
.Left = 228
.Top = 23
.Height = 28
.Visible = True
.Position = 1
End With
The first part disables a couple of command bars that are in the template
(they are only used for development, not general work). The sets of With
structures position two of the command bars where I want them.
Hope this helps.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> Hi again,
>
[quoted text clipped - 9 lines]
> Thank you,
> Beck
Becky Carter Hickman-Jones - 24 Nov 2004 00:12 GMT
Thanks Charles. Specifically, the template that I am using disables the
Tools > Macro command. I would like to turn it back on, and I've looked
through the template code to find CommandBars, and I do find a few
instances, but none of them references tools or macro, so I'm at a bit of a
stop.
> I would try, instead, disabling the menu commands in your template, either
> manually or through code, once. Absent other weird Add-Ins, they will be
[quoted text clipped - 52 lines]
> > Thank you,
> > Beck
Charles Kenyon - 24 Nov 2004 23:43 GMT
Put a (null) macro into your template that intercepts the command. See the
MVP FAQ on vba for details on how to do this.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> Thanks Charles. Specifically, the template that I am using disables the
> Tools > Macro command. I would like to turn it back on, and I've looked
[quoted text clipped - 67 lines]
>> > Thank you,
>> > Beck