Excel VBA - Custom Menu Bar

B

bforster1

I have created a custom menu bar..a section of the code below...but d
not know how to create a 2nd level to look like the example below.

Period >
Month >
Current Year (action)

Any suggestions. Thanks.

' Add a new menu
Set NewMenu = NewMenuBar.Controls.Add _
(Type:=msoControlPopup)
NewMenu.Caption = "&Period"
' Add a new menu item
Set NewItem = NewMenu.Controls.Add(Type:=msoControlButton)
With NewItem
.Caption = "&By Month"
.OnAction = "Main"
End Wit
 

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