Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi How do I add a submenu to this? Dim MyBar As CommandBar, MyItim As CommandBarControl Set MyBar = CommandBars.Add(Name:="Sheet1menu", Position:=msoBarPopup, Temporary:=True) Set MyItim = MyBar.Controls.Add(Type:=msoControlButton) With MyItim .Caption = "Show" .OnAction = "Macro1" End With Set MyItim = MyBar.Controls.Add(Type:=msoControlButton) With MyItim .Caption = "Show2" .OnAction = "Macro2" End With This works fine but I want t ohave a submenu to the first one. Thanks in advance *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA:programmatically invoking menu items from Excel Worksheet menu | Excel Programming | |||
Drop dwn menu. Formula to count selection frm menu in anoth cell? | Excel Worksheet Functions | |||
Custom Context menu (Right click menu) not working in sheet changeevent. | Excel Programming | |||
Menu items added with menu item editor in older versions | Excel Discussion (Misc queries) | |||
Adding a menu item right click menu when clicking on a single. | Excel Programming |