WorkbookAddinInstall Event

Microsoft Excel Visual Basic

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

Private Sub object_WorkbookAddinInstall(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 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