zelarra821
Registered User.
- Local time
- Today, 15:14
- Joined
- Jan 14, 2019
- Messages
- 835
I have the following procedure to create a custom context menu:
I need to add Format Copy but I don't know the ID.
Does anyone know or where can I consult it?
Thanks.
Code:
Sub MenuContextual()
On Error Resume Next
Dim myBar As CommandBar
CommandBars("ShortcutMenu").Delete
Set myBar = CommandBars _
.Add(Name:="ShortcutMenu", Position:=msoBarPopup, Temporary:=True)
With myBar
.Controls.Add Type:=msoControlButton, ID:=19
.Controls.Add Type:=msoControlButton, ID:=22
End With
Set myBar = Nothing
End Sub
I need to add Format Copy but I don't know the ID.
Does anyone know or where can I consult it?
Thanks.