Loading a Word Add-in

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

You can load an add-in manually, automatically, or programmatically.

To load a Microsoft® Word add-in manually, select Templates and Add-Ins from the Tools menu, and then select the check box next to the template's name in the Global templates and add-ins list.

**Note   **If the add-in does not appear in the list, click Add to locate it. When an add-in is loaded, it is available to each new document that is created until you clear the check box in the Global templates and add-ins list in the Templates and Add-Ins dialog box.

To load a Word add-in automatically, save the template file in the Word Startup folder on your computer.

To load a Word add-in programmatically, you can try one of the two following methods.

  • Call the Add method of the AddIns collection and pass in the add-in file name. By default, the Add method adds the add-in to the AddIns collection, if it is not there already, and loads the add-in. If the add-in is in the AddIns collection, it will appear in the Global templates and add-ins list in the Templates and Add-Ins dialog box. To add the add-in to the collection without loading it, pass in False for the optional Install argument.1.
  • Set the Installed property of the corresponding AddIn object to True. When you try to set this property, an error will occur if the add-in has not been added to the collection already.

If an error occurs in a loaded add-in, you cannot debug the add-in code while it is loaded or view or modify its project. To view or change the code that is in the add-in project, open it directly in Word.

See Also

Word Add-ins | Creating a Word Add-in | Running Code When a Word Add-in Is Loaded or Unloaded