disable toolbar selection

K

klav

I have a protected form for which I display customized toolbars. How can I
disable the user from being able to right click in the menu bar area and
selecting other toolbars to display?
 
C

Charles Kenyon

If macros are active, you can use AutoNew and AutoOpen macros to disable the
other toolbars.

i.e. Application.CommandBars("Formatting").Enabled = False

However, this is extreme and you need a way to reenable the ones you disable
when your document is closed because this setting is application-wide rather
than document or template specific.

You could customize the other toolbars in your template so that they don't
have any commands or buttons, I suppose. That, at least, can be made
template-specific.
--
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.
 
K

klav

Thanks -- I do have application events associated with this template so if I
disabled all the toolbars (such as standard, formatting, etc.), I could
restore them when the user opens another instance of Word or switches to a
document which is not my protected form.

Just curious, however, is there a way to prevent the user from being able to
right-click in the menu bar area?
 
C

Charles Kenyon

AFAIK the only way to prevent the user from right-clicking in the menu area
to get the toolbars is to tie his/her hands behind the back so that the
mouse is not used when the screen is in view. This could probably be
defeated by mirrors, though.

<g>

OTOH most users don't know that they can right-click to get toolbars.
--
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