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 / April 2005

Tip: Looking for answers? Try searching our database.

Hide CommandBar Customize

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marco Mendonça - 18 Apr 2005 18:06 GMT
I've created a Custom CommandBar and i don't want to allow the user to
customize the Word CommandBars.
I've managed to disable the "Toolbar List" menu (right-clicking the
CommandBars), but i can't access the dropdown button of the CommandBar (the
last button of the CommandBar) that allows the user to click "Customize".
How can i disable this "Customize" option?
Cindy M  -WordMVP- - 19 Apr 2005 17:12 GMT
Hi =?Utf-8?B?TWFyY28gTWVuZG9uw6dh?=,

> I've created a Custom CommandBar and i don't want to allow the user to
> customize the Word CommandBars.
> I've managed to disable the "Toolbar List" menu (right-clicking the
> CommandBars), but i can't access the dropdown button of the CommandBar (the
> last button of the CommandBar) that allows the user to click "Customize".
> How can i disable this "Customize" option?

Using VBA, you can set a protection for individual command bars. For example

CommandBars("MyBar").Protection = msoBarNoChangeVisible

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
Marco Mendonça - 19 Apr 2005 17:43 GMT
I'm using:

           CommandBar.Protection = msoBarNoChangeDock + _
             msoBarNoChangeVisible + msoBarNoCustomize + _
             msoBarNoMove + msoBarNoResize

But that doesn't hide the "Customize" button of the "Add or Remove Buttons"
Menu of the CommandBar. So, the user is still able to create other
CommandBars...

> Hi =?Utf-8?B?TWFyY28gTWVuZG9uw6dh?=,
>
[quoted text clipped - 16 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 21 Apr 2005 14:34 GMT
Hi =?Utf-8?B?TWFyY28gTWVuZG9uw6dh?=,

> So, the user is still able to create other
> CommandBars...

As far as I know, there is no way to block this one. The
Word developers haven't been as conscientious about
exposing objects in the object model in recent years. This
button is (like Task Panes) relatively recent, and is yet
another thing we can't trap.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
 
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.