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
:-)