Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

disable toolbar selection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
klav - 30 Jun 2005 13:52 GMT
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?  
Charles Kenyon - 30 Jun 2005 14:03 GMT
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?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.