Entries Property

Applies To

AutoCorrect object.

Description

Returns an AutoCorrectEntries collection that represents the current list of AutoCorrect entries. This list corresponds to the list of AutoCorrect entries on the AutoCorrect tab in the AutoCorrect dialog box (Tools menu). Read-only.

See Also

AutoCorrect property, ReplaceText property.

Example

This example displays the total number of AutoCorrect entries.

MsgBox AutoCorrect.Entries.Count
This example deletes the specified AutoCorrect entry if it exists.

myValue = InputBox("Enter the AutoCorrect entry to delete.")
For Each anEntry in AutoCorrect.Entries
    If anEntry.Name = myValue Then
        myMatch = True
        myConfirm = MsgBox("Are you sure you want to delete " & _
            anEntry.Name, 4)
        If myConfirm = vbYes Then
            anEntry.Delete
        End If
    End If
Next anEntry
If myMatch <> True Then
    MsgBox "There was no AutoCorrect entry: " & myValue
End If