Application.WorkbookAddinUninstall event (Excel)

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

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.