Events in Excel

Most of the events you will be working with occur at the level of the Workbook, Worksheet, or Chart objects. A good number of the events are detected by two or three of these objects, so you have a great deal of flexibility as to how you use the events. Table 6.12 describes those events that are detected by two or all three of these objects.

Table 6.12. Events detected by two or three of the Workbook, Worksheet, and Chart objects.
EventDetected byDescription
ActivateCh, Wb, WsOccurs when the object is activated.
BeforeDoubleClickCh, WsOccurs when the object is double-clicked, before the default double-click event.
BeforeRightClickCh, WsOccurs when the object is right-clicked, before the default right-click event.
CalculateCh, WsOccurs ...

Get Office® XP Development with VBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.