AddinUninstall Event

Applies To

Workbook object.

Description

Occurs when the workbook is uninstalled as an add-in.

Syntax

Private Sub Workbook_AddinUninstall( )

Remarks

The add-in doesn't automatically close when it's uninstalled.

See Also

AddinInstall event, WorkbookAddinInstall event, WorkbookAddinUnInstall event.

Example

This example minimizes Microsoft Excel when the workbook is uninstalled as an add-in.

Private Sub Workbook_AddinUninstall()
    Application.WindowState = xlMinimized
End Sub