"Menu Bar" corruption

B

Bridge

I have created a simple document template that contains one drop down menu item on "menu bar" which in turn contains one several menu items. I then put this into the startup folder so that it appears for all document and everything is AOK
Now for the problem; when I go to customise the menus by trying to drag my menu item to a different location ( or by doing Application.CommandBars("Menu Bar").Controls("My Menu Item").Move ) my menu item is moved correctly but its sub menu items disappear
How can I stop this happening
I can do this programmatically by changing the customisation context, but this will not prevent the error occuring if a user modifies the menu by dragging it
Any ideas?
 
P

Perry

Hi Bridge,

Show us the VBA code you're using to move the commandbar.control to another
location on same commandbar.

No problem here in moving commandbars using VBA.

Krgrds,
Perry

Bridge said:
I have created a simple document template that contains one drop down menu
item on "menu bar" which in turn contains one several menu items. I then put
this into the startup folder so that it appears for all document and
everything is AOK.
Now for the problem; when I go to customise the menus by trying to drag my
menu item to a different location ( or by doing
Application.CommandBars("Menu Bar").Controls("My Menu Item").Move ) my menu
item is moved correctly but its sub menu items disappear.
How can I stop this happening?
I can do this programmatically by changing the customisation context, but
this will not prevent the error occuring if a user modifies the menu by
dragging it.
 
C

Charles Kenyon

From the way you are writing, I'm assuming that you are not programming the
move but doing it using the Customize dialog. You need to _open_ your Add-In
template for editing -- so you could type in the template itself -- to make
such changes. Then call up the Customize dialog and move your menu to your
heart's content.
--

Charles Kenyon

See the MVP FAQ: <URL: 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.

Bridge said:
I have created a simple document template that contains one drop down menu
item on "menu bar" which in turn contains one several menu items. I then put
this into the startup folder so that it appears for all document and
everything is AOK.
Now for the problem; when I go to customise the menus by trying to drag my
menu item to a different location ( or by doing
Application.CommandBars("Menu Bar").Controls("My Menu Item").Move ) my menu
item is moved correctly but its sub menu items disappear.
How can I stop this happening?
I can do this programmatically by changing the customisation context, but
this will not prevent the error occuring if a user modifies the menu by
dragging it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top