AddIn Object

Description

Represents a single add-in, either loaded or not loaded. The AddIn object is a member of the AddIns collection. The AddIns collection contains a list of all the add-ins available to Microsoft PowerPoint, regardless of whether or not they're loaded. This list corresponds to the list of add-ins displayed in the Add-Ins dialog box (Tools menu).

Using the AddIn Object

Use AddIns(index), where index is the add-in's title or index number, to return a single AddIn object. The following example loads the My Ppt Tools add-in.

AddIns("my ppt tools").Loaded = True
Don't confuse the add-in title, which appears in the Add-Ins dialog box, with the add-in name, which is the file name of the add-in. You must spell the add-in title exactly as it's spelled in the Add-Ins dialog box, but the capitalization doesn't have to match.

The index number represents the position of the add-in in the Add-ins available box in the Add-Ins dialog box. The following example displays the names of all the add-ins that are currently loaded in PowerPoint.

For i = 1 To AddIns.Count
    If AddIns(i).Loaded Then MsgBox AddIns(i).Name
Next
Remarks

Use the Add method to add an add-in to the list of available add-ins. Note, however, that using this method doesn't load the add-in. To load the add-in, set the Loaded property of the add-in to True after you use the Add method. You can perform both of these actions in a single step, as shown in the following example (note that you use the name of the add-in, not its title, with the Add method).

AddIns.Add("generic.ppa").Loaded = True
Use Presentations(index), where index is the add-in's file name (not its title), to return a reference to the presentation that corresponds to a loaded add-in. You must use the file name, because loaded add-ins usually don't appear in the Presentations collection. The following example sets the presAddin variable to the presentation for Myaddin.ppa.

Set presAddin = Presentations("myaddin.ppa")
The following example sets the pres variable to the presentation for the My Ppt Tools add-in.

Set presAddin = Presentations(AddIns("my ppt tools").Name)
Properties

Application property, AutoLoad property, FullName property, Loaded property, Name property, Parent property, Path property, Registered property.