Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 895 Bytes

Excel.Workbook.AddinInstall.md

File metadata and controls

47 lines (29 loc) · 895 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.AddinInstall event (Excel)
vbaxl10.chm503080
vbaxl10.chm503080
Excel.Workbook.AddinInstall
671117b2-590e-9d6f-29ae-5f0bf30d4e99
05/25/2019
medium

Workbook.AddinInstall event (Excel)

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

Syntax

expression.AddinInstall

expression A variable that represents a Workbook object.

Return value

Nothing

Example

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]