Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FaceId

Status
Not open for further replies.

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
 
I'm taking a guess here but I can't imagine that popup menus have a faceID property. Have you checked this?

Asjeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top