Application SheetBeforeRightClick Event

Purpose

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

Syntax

SheetBeforeRightClick(Sh, Target, Cancel)

Required Parameters

Sh

A Worksheet object that represents the sheet.

Target

The cell nearest to the mouse pointer when the right-click occurred.

Cancel

False 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.