Class AddIn (PowerPoint VBA)
The class AddIn represents a single add-in, either loaded or not loaded. To use a AddIn class variable it first needs to be instantiated, for example
Dim adi as AddIn
Set adi = AddIns(Index:=1)
AutoLoad
Determines whether the specified add-in is automatically loaded each time PowerPoint is started.
Setting this property to msoTrue automatically sets the Registered property to msoTrue. The value of the AutoLoad property can be one of these MsoTriState constants.
AddIns(1).AutoLoad = msoTrue
FullName
Returns the name of the specified add-in or saved presentation, including the path, the current file system separator, and the file name extension.
This property is equivalent to the Path property, followed by the current file system separator, followed by the Name property.
Dim strFullName As String
strFullName = AddIns(1).FullName
Loaded
Determines whether the specified add-in is loaded.
The value of the Loaded property can be one of these MsoTriState constants.
Addins.Add("c:\my documents\mytools.ppa").Loaded = msoTrue
Name
The name (title) of the add-in for file types that are registered.
You can use the object's name in conjunction with the Item method to return a reference to the object if the Item method for the collection that contains the object takes a Variant argument. For example, if the value of the Name property for a shape is Rectangle 2, .Shapes("Rectangle 2") returns a reference to that shape.
Dim strName As String
strName = AddIns(1).Name
Path
Returns a String that represents the path to the specified AddIn object.
The path doesn't include the final backslash () or the name of the specified object.
Dim strPath As String
strPath = AddIns(1).Path
Registered
Determines whether the specified add-in is registered in the Windows registry.
The value of the Registered property can be one of these MsoTriState constants.
Application.Addins("MyTools").Registered = msoTrue