Workbook.AddinUninstall event (Excel)
Occurs when the workbook is uninstalled as an add-in.
Syntax
expression.AddinUninstall
expression 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.