TwoInitialCapsExceptions.Add Method

Word Developer Reference

Returns a TwoInitialCapsException object that represents a new exception added to the list of AutoCorrect exceptions.

Syntax

expression.Add(Name)

expression   Required. A variable that represents a TwoInitialCapsExceptions collection.

Parameters

Name Required/Optional Data Type Description
Name Required String The word with two initial capital letters that you want Microsoft Word to overlook.

Return Value
TwoInitialCapsException

Remarks

If the TwoInitialCapsAutoAdd property is True, words are automatically added to the list of initial-capital exceptions.

Example

This example adds the abbreviation addr. to the list of first-letter exceptions.

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

This example adds MSOffice to the list of initial-capital exceptions.

Visual Basic for Applications
  AutoCorrect.TwoInitialCapsExceptions.Add Name:="MSOffice"

This example adds myCompany to the list of other corrections exceptions.

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

See Also