Share via


AddIns.Add Method

Adds the specified file to the list of available add-ins.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    FileName As String, _
    ByRef Install As Object _
) As AddIn
'Usage
Dim instance As AddIns
Dim FileName As String
Dim Install As Object
Dim returnValue As AddIn

returnValue = instance.Add(FileName, Install)
AddIn Add(
    string FileName,
    ref Object Install
)

Parameters

  • Install
    Type: System.Object%
    True to install the add-in. False to add the add-in to the list of add-ins but not install it. The default value is True.

Return Value

Type: Microsoft.Office.Interop.Word.AddIn

Remarks

Use the Installed property of an add-in to determine if it is already installed.

See Also

Reference

AddIns Interface

AddIns Members

Microsoft.Office.Interop.Word Namespace