For the life of me I cannot work out how to check if a right click menu exists. I have the following code to create & delete one, but what is the code to check if it exists before I delete/create it ?
To create it I use
With Application.CommandBars("Cell"
.Controls.Add(Before:=1, temporary:=True)
.Caption = "Prioritise"
.OnAction = ThisWorkbook.Name & "!Prioritise"
.BeginGroup = True
End With
To delete it I use
Application.CommandBars("Cell"
.Controls("Prioritise"
.Delete
To check for it already being there ???
Any ideas ?
To create it I use
With Application.CommandBars("Cell"
.Caption = "Prioritise"
.OnAction = ThisWorkbook.Name & "!Prioritise"
.BeginGroup = True
End With
To delete it I use
Application.CommandBars("Cell"
To check for it already being there ???
Any ideas ?