Class AddIn (PowerPoint VBA)

The class AddIn represents a single add-in, either loaded or not loaded.

The main procedure of class AddIn is AddIns.Add

Set

To use a AddIn class variable it first needs to be instantiated, for example

Dim adi as AddIn
Set adi = AddIns(Index:=1)

The following procedures can be used to set variables of type AddIn: AddIns.Item, AddIns.Add and Application.AddIns

Themes

The following procedures in this class have been grouped together and are described on a separate theme page

Name with its procedures FullName and Name

Methods

This is the main method of the AddIn class

AddIns.Add - Returns an AddIn object that represents an add-in file added to the list of add-ins.

Dim strFileName As String: strFileName = 
Dim adi As AddIn
Set adi = AddIns.Add(FileName:=strFileName)

Properties

AutoLoad determines whether the specified add-in is automatically loaded each time PowerPoint is started.

AddIns(1).AutoLoad = msoTrue

Loaded determines whether the specified add-in is loaded.

AddIns(1).Loaded = msoTrue

Parent returns the parent object for the specified object.

Dim objParent As Object
Set objParent = AddIns(1).Parent

Path returns a String that represents the path to the specified AddIn object.

Dim strPath As String
strPath = AddIns(1).Path

Registered determines whether the specified add-in is registered in the Windows registry.

AddIns(1).Registered = msoTrue

AddIns.Count returns the number of objects in the specified collection.

Dim lngCount As Long
lngCount = AddIns.Count

AddIns.Parent returns the parent object for the specified object.

Dim objParent As Object
Set objParent = AddIns.Parent