Disable Toolbar and Menu Buttons

S

selliott

I am creating a procedure to customize our Word toolbars and menus (delete
Work menu, delete the Save icon from the Standard Toolbar and File menu), and
also reset a couple of key settings (e.g. Ctrl + S, Ctrl + P). I am storing
this in a Word startup template.

I have a few questions about this procedure:

1. I have it running on AutoExit, and am setting the CustomizationContext
to NormalTemplate. I open the normal.dot file first within the code, and
then save it in the code after making the changes. I am not sure if this is
a good idea or if it could eventually cause corruption if the normal.dot file
is opened and closed often enough.
2. I could put it in an Autoexec module, but we have another AutoExec
module in a second startup template - will this cause any conflicts?

Thanks very much.
 
J

Jean-Guy Marcil

selliott was telling us:
selliott nous racontait que :
I am creating a procedure to customize our Word toolbars and menus
(delete Work menu, delete the Save icon from the Standard Toolbar and
File menu), and also reset a couple of key settings (e.g. Ctrl + S,
Ctrl + P). I am storing this in a Word startup template.

I have a few questions about this procedure:

1. I have it running on AutoExit, and am setting the

Surely you mean AutoExec here...
CustomizationContext to NormalTemplate. I open the normal.dot file

Why open Normal.dot?
first within the code, and then save it in the code after making the
changes. I am not sure if this is a good idea or if it could
eventually cause corruption if the normal.dot file is opened and
closed often enough.

It is possible.
Saving those changes in Normal.dot will only affect documents based on
Normal.dot. If the user creates a document based on another template, your
changes will not appear in those documents. Is that what you want?
2. I could put it in an Autoexec module, but we have another AutoExec
module in a second startup template - will this cause any conflicts?

Both will run.
Why not save the changes in the startup template? The changes on a toolbar
in a startup template are effective as long as the template is in the
startup folder. The only thing is you have to make sure that you do not have
contradicting AutoExec code that would cancel each other out...
Then, the changes you make will be valid as long as the Word session is on,
regardless of the templates used to create documents.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top