OtherCorrectionsException Object (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a single AutoCorrect exception. The OtherCorrectionsException object is a member of the OtherCorrectionsExceptions collection.

The OtherCorrectionsExceptions collection includes all words that Microsoft Word won't correct automatically. This list corresponds to the list of AutoCorrect exceptions on the Other Corrections tab in the AutoCorrect Exceptions dialog box.

Use OtherCorrectionsExceptions(Index), where Index is the AutoCorrect exception name or the index number, to return a single OtherCorrectionsException object. The following example deletes "WTop" from the list of AutoCorrect exceptions.

AutoCorrect.OtherCorrectionsExceptions("WTop").Delete

The index number represents the position of the AutoCorrect exception in the OtherCorrectionsExceptions collection. The following example displays the name of the first item in the OtherCorrectionsExceptions collection.

MsgBox AutoCorrect.OtherCorrectionsExceptions(1).Name

If the value of the OtherCorrectionsAutoAdd property is True, words are automatically added to the list of AutoCorrect exceptions. Use the Add method to add an item to the OtherCorrectionsExceptions collection. The following example adds "TipTop" to the list of AutoCorrect exceptions.

AutoCorrect.OtherCorrectionsExceptions.Add Name:="TipTop"
Show:
© 2016 Microsoft