AutoCorrect Object

Microsoft Word Visual Basic

Multiple objectsAutoCorrect
Multiple objects

Represents the AutoCorrect functionality in Word.

Using the AutoCorrect Object

Use the AutoCorrect property to return the AutoCorrect object. The following example enables the AutoCorrect options and creates an AutoCorrect entry.

With AutoCorrect
    .CorrectCapsLock = True
    .CorrectDays = True
    .Entries.Add Name:="usualy", Value:="usually"
End With
		

The Entries property returns the AutoCorrectEntries object that represents the AutoCorrect entries in the AutoCorrect dialog box (Tools menu).