AddIn Object
Word Developer Reference |
Represents a single add-in, either installed or not installed. The AddIn object is a member of the AddIns collection. The AddIns collection contains all the add-ins available to Microsoft Office Word, regardless of whether they are currently loaded. The AddIns collection includes global templates or Word add-in libraries (WLLs) displayed in the Templates and Add-ins dialog box (Tools menu).
Remarks
Use AddIns(
index
), where
index
is the add-in name or index number, to return a single AddIn object. You must exactly match the spelling (but not necessarily the capitalization) of the name, as it is shown in the Templates and Add-Ins dialog box. The following example loads the Letter.dot template as a global template.
Visual Basic for Applications |
---|
|
The index number represents the position of the add-in in the list of add-ins in the Templates and Add-ins dialog box. The following instruction displays the path of the first available add-in.
Visual Basic for Applications |
---|
|
The following example creates a list of add-ins at the beginning of the active document. The list contains the name, path, and installed state of each available add-in.
Visual Basic for Applications |
---|
|
Use the Add method to add an add-in to the list of available add-ins and (optionally) install it using the Install argument.
Visual Basic for Applications |
---|
|
To install an add-in shown in the list of available add-ins, use the Installed property.
Visual Basic for Applications |
---|
|
Note |
---|
Use the Compiled property to determine whether an AddIn object is a template or a WLL. |
See Also