Workbook SheetBeforeRightClick Event



Syntax
Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
Enter Code
End Sub

This event will run after a user right clicks within any of the worksheets in this specific workbook. This event will occur after the Worksheet SheetBeforeRightClick Event for the worksheet that is right clicked.

Required Parameters
Sh
The sh parameter returns the worksheet that was right clicked by the user.  This parameter returns a Worksheet object to allow users to manipulate the events, methods and properties.

Target
The target parameter will return the range of the cell closest to where the mouse is pointing when the right click occurs.

Cancel
The cancel parameter is Boolean data type set to return either true or false.  By default the cancel parameter will return a value of false when the right click occurs. If the cancel parameter is set to a value of true then the default right click process will not occur.