This documentation is archived and is not being maintained.

Application.SheetBeforeRightClick Event

Office 2007
Occurs when any worksheet is right-clicked, before the default right-click action.

Syntax

expression.SheetBeforeRightClick(Sh, Target, Cancel)

expression   An expression that returns a Application object.

Parameters

NameRequired/OptionalData TypeDescription
ShRequiredObjectA Worksheet object that represents the sheet.
TargetRequiredRangeThe cell nearest to the mouse pointer when the right-click occurred.
CancelRequiredBooleanFalse when the event occurs. If the event procedure sets this argument to True, the default right-click action isn't performed when the procedure is finished.

Remarks

This event doesn't occur on chart sheets.




Show: