AutoLoad Property

Microsoft PowerPoint Visual Basic

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

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The specified add-in is automatically loaded each time PowerPoint is started.

Remarks

Setting this property to msoTrue automatically sets the Registered property to msoTrue.

Example

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

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.

Application.AddIns("mytools").AutoLoad = msoTrue