Share via


Worksheet.Shutdown Event

Occurs when the worksheet host item shuts down.

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

Syntax

'Declaration
Event Shutdown As EventHandler
event EventHandler Shutdown

Remarks

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

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

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

.NET Framework Security

See Also

Reference

Worksheet Interface

Microsoft.Office.Tools.Excel Namespace