Share via


AddIn.AutoLoad Property

PowerPoint Developer Reference

Determines whether the specified add-in is automatically loaded each time PowerPoint is started. Read/write.

Syntax

expression.AutoLoad

expression   A variable that represents an AddIn object.

Return Value
MsoTriState

Remarks

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.

Constant Description
msoFalse The specified add-in is not automatically loaded each time PowerPoint is started.
msoTrue The specified add-in is automatically loaded each time PowerPoint is started.

Example

This example displays the name of each add-in that's automatically loaded each time PowerPoint is started.

Visual Basic for Applications
  For Each myAddIn In AddIns
    If myAddIn.AutoLoad Then
        MsgBox myAddIn.Name
        afound = True
    End If
Next myAddIn
If afound <> True Then 
    MsgBox "No add-ins were loaded automatically."
End If

This example specifies that the add-in named "myTools" be loaded automatically each time PowerPoint is started.

Visual Basic for Applications
  Application.AddIns("mytools").AutoLoad = msoTrue

See Also