Skip to main content

Application.WorkbookAddinUninstall event

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

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>