Export (0) Print
Expand All

TwoInitialCapsExceptions.Add Method

Office 2007
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

NameRequired/OptionalData TypeDescription
NameRequiredStringThe 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"



Community Additions

ADD
Show:
© 2014 Microsoft