The right click option is avail via the
commandbars("Cell") eg.
Sub Cell_RightClick_ShortcutSub_Create()
Dim newSubItem As Object
CommandBars("Cell").Controls.Add(Type:=msoControlPopup, before:=1).Caption = "NewSub"
Set newSubItem = CommandBars("Cell").Controls("NewSub")
With newSubItem
.Controls.Add(Type:=msoControlButton, before:=1).Caption = "subItem1"
' This will run the subItem1_Code macro when subItem1 is clicked.
.Controls("subItem1").OnAction = "subItem1_Code"
End With
End Sub
'The following is the macro that runs when you click subItem1:
Sub subItem1_Code()
MsgBox "you clicked subItem1"
End Sub
HTH
Ivan
Hi Ivan,
Thanks for the respnse, however, I was looking for a non-VBA solution.
Something more on the order of a "tools" operation