AddIns Interface

A collection of AddIn objects that represent all the Microsoft Office PowerPoint-specific add-ins available to PowerPoint, regardless of whether or not they are loaded. This does not include Component Object Model (COM) add-ins.

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

Syntax

'Declaration
<GuidAttribute("91493460-5A91-11CF-8700-00AA0060263B")> _
Public Interface AddIns _
    Inherits Collection
'Usage
Dim instance As AddIns
[GuidAttribute("91493460-5A91-11CF-8700-00AA0060263B")]
public interface AddIns : Collection

Examples

Use the AddIns method to return the AddIns collection. The following example displays the names of all the add-ins that are currently loaded in PowerPoint.

For Each ad In AddIns

    If ad.Loaded Then MsgBox ad.Name

Next

Use the Add(String) method to add a PowerPoint-specific add-in to the list of those available. The Add method adds an add-in to the list but does not 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 these two 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("graphdrs.ppa").Loaded = True

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 hypothetical add-in titled "my ppt tools".

AddIns("my ppt tools").Loaded = True

Do not confuse the add-in title with the add-in name, which is the file name of the add-in. You must spell the add-in title exactly as it is spelled in the Add-Ins tab, but the capitalization does not have to match.

See Also

Reference

AddIns Members

Microsoft.Office.Interop.PowerPoint Namespace