TwoInitialCapsExceptions.Add method (Word)

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.

AutoCorrect.FirstLetterExceptions.Add Name:="addr."

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

AutoCorrect.TwoInitialCapsExceptions.Add Name:="MSOffice"

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

AutoCorrect.OtherCorrectionsExceptions.Add Name:="myCompany"

See also

TwoInitialCapsExceptions Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.