AutoCorrect Object

Microsoft Excel Visual Basic

ApplicationAutoCorrect

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

Using the AutoCorrect Object

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.

With Application.AutoCorrect
    .TwoInitialCapitals = True
    .ReplaceText = True
End With