Share via


FirstLetterException Object

Word Developer Reference

Represents an abbreviation excluded from automatic correction. The FirstLetterExceptions object is a member of the FirstLetterExceptions collection.

Remarks

The FirstLetterExceptions collection includes all the excluded abbreviations.The first character following a period is automatically capitalized when the CorrectSentenceCaps property is set to True. The character you type following an item in the FirstLetterExceptions collection isn't capitalized.

Use FirstLetterExceptions(Index), where Index is the abbreviation or the index number, to return a single FirstLetterException object. The following example deletes the abbreviation "appt." from the FirstLetterExceptions collection.

Visual Basic for Applications
  AutoCorrect.FirstLetterExceptions("appt.").Delete

The following example displays the name of the first item in the FirstLetterExceptions collection.

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

Use the Add method to add an abbreviation to the list of first-letter exceptions. The following example adds the abbreviation "addr." to this list.

Visual Basic for Applications
  AutoCorrect.FirstLetterExceptions.Add Name:="addr."

See Also