Mega Code Archive

 
Categories / VisualBasic Script / Application
 

Display shortcut menu with the ShowPopup method

Private Sub Worksheet_BeforeRightClick(ByVal Target As Excel.Range, Cancel As Boolean)     CommandBars("MyShortcut").ShowPopup     Cancel = True End Sub