Class AddIns (PowerPoint VBA)
A collection of AddIn objects that represent all the Microsoft 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. To use a AddIns class variable it first needs to be instantiated, for example
Dim ais as AddIns
Set ais = AddIns
Add
Returns an AddIn object that represents an add-in file added to the list of add-ins.
This method doesn't load the new add-in. You must set the Loaded property to load the add-in.
Add (FileName)
FileName: The full name of the file (including the path and file name extension) that contains the add-in you want to add to the list of add-ins.
Dim strFileName As String: strFileName =
Dim adi As AddIn
Set adi = AddIns.Add(FileName:=strFileName)
Count
Returns the number of objects in the specified collection.
Dim lngCount As Long
lngCount = AddIns.Count
Item
Returns a single Addin object from the specified Addins collection.
Item (Index)
Index: The name or index number of the single Addin object in the collection to be returned.
Dim adi As AddIn
Set adi = AddIns(Index:=1)
Remove
Removes an add-in from the collection of add-ins.
Remove (Index)
Index: The name or index number of the add-in to be removed from the collection.
AddIns.Remove "mytools"