Autoload Property

Microsoft Word Visual Basic

True if the specified add-in is automatically loaded when Word is started. Add-ins located in the Startup folder in the Word program folder are automatically loaded. Read-only Boolean.

Example

This example displays the name of each add-in that is automatically loaded when Word is started.

Dim addinLoop as AddIn
Dim blnFound as Boolean

blnFound = False

For Each addinLoop In AddIns
    With addinLoop
        If .Autoload = True Then 
            MsgBox .Name
            blnFound = True
        End If
    End With
Next addinLoop

If blnFound <> True Then _
    MsgBox "No add-ins were loaded automatically."
		

This example determines whether the add-in named "Gallery.dot" was automatically loaded.

Dim addinLoop as AddIn

For Each addinLoop In AddIns
    If InStr(LCase$(addinLoop.Name), "gallery.dot") > 0 Then
        If addinLoop.Autoload = True Then Msgbox "Autoload"
    End If
Next addinLoop