Syntax
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Enter
Code
End Sub
This event occurs when a worksheet is
right-clicked, before the default right-click action.
Required Parameters
Target
The cell nearest to the mouse pointer when
the right-click occurs.
Cancel
False when the event occurs. If the event
procedure sets this argument to True, the default right-click action doesn't
occur when the procedure is finished.