WorkbookAddinUninstall Event

Applies To

Application object.

Description

Occurs when any add-in workbook is uninstalled.

Syntax

Private Sub object_WorkbookAddinUninstall(ByVal Wb As Workbook)

object An object of type Application declared with events in a class module.

Wb The uninstalled workbook.

See Also

AddinInstall event, AddinUninstall event, WorkbookAddinInstall event.

Example

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

Private Sub App_WorkbookAddinUninstall(ByVal Wb As Workbook)
    Application.WindowState = xlMinimized
End Sub