OtherCorrectionsExceptions Collection Object

Word Developer Reference

A collection of OtherCorrectionsException objects that represents the list of words that Microsoft Word won't correct automatically.

Remarks

This list corresponds to the list of AutoCorrect exceptions on the Other Corrections tab in the AutoCorrect Exceptions dialog box.

Use the OtherCorrectionsExceptions property to return the OtherCorrectionsExceptions collection. The following example displays the items in this collection.

Visual Basic for Applications
  For Each aCap In AutoCorrect.OtherCorrectionsExceptions
    MsgBox aCap.Name
Next aCap

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.

Visual Basic for Applications
  AutoCorrect.OtherCorrectionsExceptions.Add Name:="TipTop"

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

Visual Basic for Applications
  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.

Visual Basic for Applications
  MsgBox AutoCorrect.OtherCorrectionsExceptions(1).Name

See Also