WorkbookAddinInstall Event
Applies To
Application object.
Description
Occurs when a workbook is installed as an add-in.
Syntax
Private Sub object_WorkbookAddinInstall(ByVal Wb As Workbook)
object An object of type Application declared with events in a class module.
Wb The installed workbook.
See Also
AddinInstall event, AddinUninstall event, WorkbookAddinUninstall event.
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