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

Tip: Looking for answers? Try searching our database.

Commandbars

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joanne - 05 Aug 2005 15:13 GMT
Hello,
We have a menu item that we want to remove but it keeps changing its
position on the file dropdown.  It's a third party add in.  We want to keep
the program but access the executable from a toolbar icon instead of the
menu.  How do we remove this menu item by name rather than by its position in
the file drop down, since its position keeps changing?

Thanks for any help you can provide.
Jonathan West - 05 Aug 2005 20:56 GMT
> Hello,
> We have a menu item that we want to remove but it keeps changing its
[quoted text clipped - 6 lines]
>
> Thanks for any help you can provide.

Hi Joanne,

Basically the only sure way is to get in touch with the vendor of the add-in
and ask them to provide you with a version without the menu.

Failing that, you could cycle through the CommandBars.ActiveMenuBar.Controls
collection. When you find the control that has the caption of the
misbehaving addin, set the control's Visible property to False.

Without knowing what the add-in does to display the menu, there is no way to
be sure that the menu won't reappear, but this will give you a reasonable
chance.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 

 
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.