Occurs when the editing area of a document window is right-clicked, before the default right-click action.
Syntax
Private Sub object_WindowBeforeRightClick(ByVal Sel As Selection, ByVal Cancel As Boolean)
object An object of type Application declared with events in a class module. For more information about using events with the Application object, see Using Events with the Application Object.
Sel The current selection.
Cancel False when the event occurs. If the event procedure sets this argument to True, the default right-click action does not occur when the procedure is finished.