Add Method (AddIns Collection)

Applies To

AddIns collection object.

Description

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

Syntax

expression.Add(FileName, Install)

expression Required. An expression that returns an AddIns object.

FileName Required String. The path for the template or WLL.

Install Optional Variant. 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.

Remarks

Use the Installed property of an add-in to see whether it's already installed.

See Also

Installed property.

Example

This example installs a template named "MyFax.dot" and adds it to the list of add-ins in the Templates and Add-ins dialog box.

AddIns.Add FileName:= _
    "C:\Program Files\Microsoft Office\Templates\Letters & Faxes\MyFax.dot", _
    Install:=True
This Macintosh example adds MYTEMPLATE to the list of add-ins in the Templates and Add-ins dialog box.

AddIns.Add FileName:="HD:TEMPLATE:LIB MYTEMPLATE"