Respond to Events in Excel
Chapter 2 discussed events in a general way and showed you how to create your own events. Excel introduced real events to its object library in 1997, and they are one of the key improvements that allow Excel applications to be truly interactive with users.
The most obvious events occur for the Workbook, Worksheet, and Chart objects since those objects include accompanying classes that you can view in the Visual Basic Editor (Figure 4-20).

Figure 4-20. Finding events in the Visual Basic Editor
You can list the events for Workbook, Worksheet, or Chart objects by clicking on the object and event listboxes in the Code window, or you can refer to Table 4-7.
Table 4-7. Events available from Excel objects
|
Object |
Event |
|---|---|
|
|
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access