AutoCorrect.Entries property (Word)

Returns an AutoCorrectEntries collection that represents the current list of AutoCorrect entries.


expression. Entries

expression A variable that represents an 'AutoCorrect' object.


This list corresponds to the list of AutoCorrect entries on the AutoCorrect tab in the AutoCorrect dialog box. Read-only. For information about returning a single member of a collection, see Returning an object from a collection.


This example displays the total number of AutoCorrect entries.

MsgBox AutoCorrect.Entries.Count

This example deletes the specified AutoCorrect entry if it exists.

Dim strEntry As String 
Dim acEntry As AutoCorrectEntry 
Dim blnMatch As Boolean 
Dim intResponse As Integer 
strEntry = InputBox("Enter the AutoCorrect entry to delete.") 
blnMatch = False 
For Each acEntry in AutoCorrect.Entries 
 If acEntry.Name = strEntry Then 
 blnMatch = True 
 intResponse = _ 
 MsgBox("Are you sure you want to delete " _ 
 & acEntry.Name, 4) 
 If intResponse = vbYes Then 
 End If 
 End If 
Next acEntry 
If blnMatch <> True Then 
 MsgBox "There was no AutoCorrect entry: " & strEntry 
End If

See also

AutoCorrect Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.