Application.WorkbookAddinUninstall Event (Excel)

Occurs when any add-in workbook is uninstalled.

Syntax

expression. WorkbookAddinUninstall( _Wb_ )

expression A variable that represents an [Application](./Excel.Application(Graph property).md) 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.

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

See also

Application Object