E
Ed
I managed to created a custom menu. But I can't find the Add for the new
control to add items under the new menu. Help?
Ed
Sub AddNewMenu()
Dim oCB As CommandBar
Set oCB = Application.CommandBars("Worksheet Menu Bar")
Dim newMenu As CommandBarControl
Set newMenu = oCB.Controls.Add(Type:=10)
newMenu.Caption = "MyMenu"
newMenu.Enabled = True
End Sub
control to add items under the new menu. Help?
Ed
Sub AddNewMenu()
Dim oCB As CommandBar
Set oCB = Application.CommandBars("Worksheet Menu Bar")
Dim newMenu As CommandBarControl
Set newMenu = oCB.Controls.Add(Type:=10)
newMenu.Caption = "MyMenu"
newMenu.Enabled = True
End Sub