CommandBar

L

Lynn

Hi anyone,
I create a menu for an excel workbook using this:
Sub CreateMenu()
' is automatically executed from an Auto_Open macro or a
Workbook_Open eventmacro
Dim cbMenu As CommandBarControl, cbSubMenu As
CommandBarControl
Set cbMenu = Application.CommandBars(1).Controls.Add
(msoControlPopup,before:=11 , , , True)
With cbMenu
.Caption = "&My menu"
.Tag = "MyTag"
.BeginGroup = False
End With
End Sub

"My menu" is showing fine, until someone clicks on a chart
in the worksheet, then My menu is no longer showing, util
the cursor is clicked somewhere else other than the chart
area, then My menu is showing.

Any idea to help keep "My menu" shows all the time until
the workbook is closed?
Thanks!
 

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