Share via


Application.WorkbookAddinUninstall Event

Excel Developer Reference

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

Example

This example minimizes the Microsoft Excel window when a workbook is installed as an add-in.

Visual Basic for Applications
  Private Sub App_WorkbookAddinUninstall(ByVal Wb As Workbook)
    Application.WindowState = xlMinimized
End Sub

See Also