title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Workbook.AddinInstall event (Excel) |
vbaxl10.chm503080 |
|
|
671117b2-590e-9d6f-29ae-5f0bf30d4e99 |
05/25/2019 |
medium |
Occurs when the workbook is installed as an add-in.
expression.AddinInstall
expression A variable that represents a Workbook object.
Nothing
This example adds a control to the standard toolbar when the workbook is installed as an add-in.
Private Sub Workbook_AddinInstall()
With Application.Commandbars("Standard").Controls.Add
.Caption = "The AddIn's menu item"
.OnAction = "'ThisAddin.xls'!Amacro"
End With End Sub
End Sub
[!includeSupport and feedback]