Hi!
I wonder how to add a user defined menu to a pop-up menu..Can anyone help me?
To add a userdefined conrol I use this code:
How can I add a userdefined menu to "menu1"?
(See picture for description of a submenu on a popup-menu)
Pål Nesteby
PDC-Tangen
Norway
I wonder how to add a user defined menu to a pop-up menu..Can anyone help me?
To add a userdefined conrol I use this code:
Code:
Set menu1 = CommandBars.Add( _
Name:="menu1", Position:=msoBarPopup, _
Temporary:=True)
Set menuItem1 = menu1.Controls.Add
With menuItem1
.FaceId = CommandBars("Userdefined menu1").Controls(1).ID
.Caption = CommandBars("Userdefined menu1").Controls(1).Caption
.OnAction = CommandBars("Userdefined menu1").Controls(1).OnAction
End With
How can I add a userdefined menu to "menu1"?
(See picture for description of a submenu on a popup-menu)

Pål Nesteby
PDC-Tangen
Norway