Compartilhar via


DocEvents_Event.BeforeRightClick Event

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Event BeforeRightClick As DocEvents_BeforeRightClickEventHandler
'Usage
Dim instance As DocEvents_Event
Dim handler As DocEvents_BeforeRightClickEventHandler

AddHandler instance.BeforeRightClick, handler
event DocEvents_BeforeRightClickEventHandler BeforeRightClick

Remarks

Like other worksheet events, this event doesn't occur if you right-click while the pointer is on a shape or a command bar (a toolbar or menu bar).

See Also

Reference

DocEvents_Event Interface

DocEvents_Event Members

Microsoft.Office.Interop.Excel Namespace