Occurs when any add-in workbook is uninstalled.
Syntax
expression.WorkbookAddinUninstall (Wb)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Wb | Required | Workbook | The uninstalled workbook. |
Return value
Nothing
Remarks
For information about how to use event procedures with the Application object, see Using events with the Application object.
Example
This example minimizes the Microsoft Excel window when a workbook is uninstalled as an add-in.
Private Sub App_WorkbookAddinUninstall(ByVal Wb As Workbook)
Application.WindowState = xlMinimized
End Sub