locking a toolbar

B

Bill Mitchell

I have a template with a customized toolbar. How do I go about making sure
that toolbar and only that toolbar will appear whenever a user opens a
document based on that template?
 
C

Charles Kenyon

You can't but you can make a stab at it. With your template open, open the
customize dialog box under the tools menu. Make sure that save changes in
indicates your template rather than normal.dot. Uncheck all of the toolbars
except your toolbar. Close the customize dialog and save your template. That
is stage one.

Stage two is a combination of AutoNew AutoOpen and AutoClose macros.
These can be easily blocked by macro security.

In the AutoNew / AutoOpen procedures you want to store any current settings
so that you can restore them in an AutoClose procedure. You can position
your toolbar as you want it and disable all other toolbars and make them
invisible.

Remember that you are messing around with the user interface in a big way.
People don't like it when all their menus disappear so it is up to you to
make sure that your changes only change your document and not Word.
Otherwise, if you are lucky you'll just get fired. This means make the
customization context your document. It means making sure you don't make any
changes to normal.dot. It means that when your document is closed, any
changes that were made to the interface disappear with the document. I'm not
sure I would want to attempt it, but you are welcome to try. Once you have
some code, post in the vba.customization newsgroup with any questions or
problems.
--

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.
 
B

Bill Mitchell

Thanks, but that is more trouble than it's worth to me. These are some fill
in the blank forms with a toolbar that only contains buttons for save as,
print and a spell check macro. I was hoping for a simple way to make sure
that those were the only options available.

Bill Mitchell
E: (e-mail address removed)
 
C

Charles Kenyon

Consider just having the toolbar float so that it is annoyingly obvious.
--

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.
 

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