Workbook.AddinUninstall Event (Excel)
Occurs when the workbook is uninstalled as an add-in.
Syntax
식 .AddinUninstall
식 A variable that represents a Workbook object.
Return Value
Nothing
Remarks
The add-in doesn't automatically close when it's uninstalled.
Example
This example minimizes Microsoft Excel when the workbook is uninstalled as an add-in.
Private Sub Workbook_AddinUninstall()
Application.WindowState = xlMinimized
End Sub