Excel Popup Menu Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to program a custom menu for an Excel application, and so far I
have managed to move the File menu to the end of the list and have multiple
File menus with only three having the MenuItems in them.
How do I rearrange the menu order and remove the unwanted File menus?

James
 
Hi James,

Try:

'===========>>
Public Sub Tester
Application.CommandBars("Worksheet Menu Bar").Reset
End Sub
'<<===========
 
James:

only Reset the File menus

Dim cbr As CommandBarControl
For Each cbr In Application.CommandBars.FindControls(ID:=30002)
MsgBox cbr.Caption
cbr.Reset
Next
 

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

Back
Top