WindowBeforeRightClick Event

WindowBeforeRightClick Event

See Also         Example         Applies To

Occurs when you right-click a shape, a slide, a notes page, or some text. This event is triggered by the MouseUp event.

Syntax

Private Sub application_WindowBeforeRightClick(ByVal Sel As Selection, ByVal Cancel As Boolean)

application   An object of type Application declared with events in a class module. For information about using events with the Application object, see Using Events with the Application Object.

Sel   The selection below 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 context menu does not appear when the procedure is finished.