Guest_imported
New member
- Jan 1, 1970
- 0
I create a popup Menu (see code ), but VBA doesn't accept FaceId for the first Level; I don't understand why.
Sub InsereMenuContextuePopUp()
With Application.CommandBars("Cell"
With .Controls.Add(msoControlPopup)
.Caption = "Exemple"
.BeginGroup = False
.FaceId = 266 ' not accepted!!!!'
' Sous-menu 1
.Controls.Add (msoControlButton)
.Controls(1).Caption = "Exemple"
With .Controls(1)
.OnAction = "MyMacro"
.FaceId = 351
End With
Sub InsereMenuContextuePopUp()
With Application.CommandBars("Cell"
With .Controls.Add(msoControlPopup)
.Caption = "Exemple"
.BeginGroup = False
.FaceId = 266 ' not accepted!!!!'
' Sous-menu 1
.Controls.Add (msoControlButton)
.Controls(1).Caption = "Exemple"
With .Controls(1)
.OnAction = "MyMacro"
.FaceId = 351
End With