CommandBar not Visible on Chart Pages

P

Phil

How do I get a commandbar to appear on all worksheet and chart pages?
(The following code creates MyMenu visible only from worksheets, but
not from chart pages.)

Thanks for your thoughts.

Dim cp_NewMenu As CommandBarPopup
Dim i_HelpIndex As Integer
i_HelpIndex = CommandBars(1).Controls("&Help").Index
Set cp_NewMenu = CommandBars(1) _
.Controls.Add(Type:=msoControlPopup, _
Before:=i_HelpIndex, Temporary:=True)
cp_NewMenu.Caption = "&My Menu"

Phil
 
T

Tom Ogilvy

There are two separate main menu bars

Worksheet Menu Bar index 1
Chart Menu Bar index 2

When a chart is active, then the Chart Menu Bar replaces the Worksheet Menu
Bar. So you would have to make modifications to both.
 

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