WorkbookAddinUninstall Event

Microsoft Excel Visual Basic

Occurs when any add-in workbook is uninstalled.

Private Sub object_WorkbookAddinUninstall(ByVal Wb As Workbook)

object    An object of type Application declared with events in a class module. For more information, see Using Events with the Application Object.

Wb    The uninstalled workbook.

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