Share via


WorkbookAddinInstall Event [Excel 2003 VBA Language Reference]

Occurs when a workbook is installed as an add-in.

Private Subobject**_WorkbookAddinInstall(ByValWbAs 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 installed workbook.

Example

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

Private Sub App_WorkbookAddinInstall(ByVal Wb As Workbook)
    Application.WindowState = xlMaximized
End Sub

Applies to | Application Object

See Also | AddinInstall Event | AddinUninstall Event | WorkbookAddinUninstall Event