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

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.
>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?
klav - 30 Jun 2005 14:19 GMT
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?
> If macros are active, you can use AutoNew and AutoOpen macros to disable the
> other toolbars.
[quoted text clipped - 11 lines]
> > disable the user from being able to right click in the menu bar area and
> > selecting other toolbars to display?
Charles Kenyon - 30 Jun 2005 19:23 GMT
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.

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 -- I do have application events associated with this template so if
> I
[quoted text clipped - 27 lines]
>> > and
>> > selecting other toolbars to display?