This documentation is archived and is not being maintained.

AutoCorrect Object

Office 2007
Contains Microsoft Excel AutoCorrect attributes (capitalization of names of days, correction of two initial capital letters, automatic correction list, and so on).


Use the AutoCorrect property to return the AutoCorrect object. The following example sets Microsoft Excel to correct words that begin with two initial capital letters.

Visual Basic for Applications
With Application.AutoCorrect
    .TwoInitialCapitals = True
    .ReplaceText = True
End With