Workbook.Shutdown Event

 

Occurs when the workbook host item shuts down.

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

event EventHandler Shutdown

This is the last event to be called in the Workbook object as the Workbook object unloads. Use this event for any additional clean up.

In a document-level customization, the application domain for the assembly unloads when the workbook host item shuts down.

In an application-level add-in, the application domain does not unload when the workbook host item shuts down. Also, the underlying workbook object is no more available. To access the workbook before it shuts down use BeforeClose instead.

Return to top
Show: