Workbook Events (Excel)
Contribute to this content Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation. |
This object has the following events:
Events
Name |
Description |
---|---|
Occurs when a workbook, worksheet, chart sheet, or embedded chart is activated. |
|
Occurs when the workbook is installed as an add-in |
|
Occurs when the workbook is uninstalled as an add-in. |
|
Occurs after the workbook is saved. |
|
Occurs after Microsoft Excel saves or exports XML data from the specified workbook. |
|
Occurs after an existing XML data connection is refreshed or after new XML data is imported into the specified Microsoft Excel workbook. |
|
Occurs before the workbook closes. If the workbook has been changed, this event occurs before the user is asked to save changes. |
|
Occurs before the workbook (or anything in it) is printed. |
|
Occurs before the workbook is saved. |
|
Occurs before Microsoft Excel saves or exports XML data from the specified workbook. |
|
Occurs before an existing XML data connection is refreshed or before new XML data is imported into a Microsoft Excel workbook. |
|
Occurs when the chart, worksheet, or workbook is deactivated. |
|
Occurs after the Excel data model is changed. |
|
Occurs when a new chart is created in the workbook. |
|
Occurs when a new sheet is created in the workbook. |
|
Occurs when the workbook is opened. |
|
Occurs after a PivotTable report closes the connection to its data source. |
|
Occurs after a PivotTable report opens the connection to its data source. |
|
The event is raised when the user either drills through the recordset or invokes the rowset action on an OLAP PivotTable. |
|
Occurs when any sheet is activated. |
|
Occurs when any worksheet is double-clicked, before the default double-click action. |
|
Occurs when any worksheet is right-clicked, before the default right-click action. |
|
Occurs after any worksheet is recalculated or after any changed data is plotted on a chart. |
|
Occurs when cells in any worksheet are changed by the user or by an external link. |
|
Occurs when any sheet is deactivated. |
|
Occurs when you click any hyperlink in Microsoft Excel. For worksheet-level events, see the Help topic for the FollowHyperlink event. |
|
Occurs when a callout gallery’s icons (dynamic & static) have completed rendering for a worksheet. |
|
Occurs after a cell or range of cells inside a PivotTable are edited or recalculated (for cells that contain formulas). |
|
Occurs before changes are applied to a PivotTable. |
|
Occurs before changes are committed against the OLAP data source for a PivotTable. |
|
Occurs before changes to a PivotTable are discarded. |
|
Occurs after changes to a PivotTable. |
|
Occurs after the sheet of the PivotTable report has been updated. |
|
Occurs when the selection changes on any worksheet (doesn't occur if the selection is on a chart sheet). |
|
Occurs after the sheet table has been updated. |
|
This object or member has been deprecated, but it remains part of the object model for backward compatibility. You should not use it in new applications. |
|
Occurs when any workbook window is activated. |
|
Occurs when any workbook window is deactivated. |
|
Occurs when any workbook window is resized. |