I am wondering if the following code can somehow be altered so the Submenu is at the top or above 'Copy'
Code:
Sub Submenu()
Dim Bar As CommandBar
Dim NewMenu As CommandBarControl
Dim NewSubmenu As CommandBarButton
DeleteSubmenu
Set Bar = CommandBars("Cell")
Set NewMenu = Bar.Controls.Add(Type:=msoControlPopup, temporary:=True)
NewMenu.Caption = "&Functions"
NewMenu.BeginGroup = True
Set NewSubmenu = NewMenu.Controls.Add(Type:=msoControlButton)
With NewSubmenu
.FaceId = 266
.Caption = "I&mport"
.OnAction = "CompAggregation"
End With
Set NewSubmenu = NewMenu.Controls.Add(Type:=msoControlButton)
With NewSubmenu
.FaceId = 254
.Caption = "&Row Select"
.OnAction = "Jump"
End With
End Sub