TwoInitialCapsException Object (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a single initial-capital AutoCorrect exception. The TwoInitialCapsException object is a member of the TwoInitialCapsExceptions collection. The TwoInitialCapsExceptions collection includes all the items listed in the Don't correct box on the INitial CAps tab in the AutoCorrect Exceptions dialog box.

Use TwoInitialCapsExceptions(Index), where Index is the initial capital exception name or the index number, to return a single TwoInitialCapsException object. The following example deletes the initial-capital exception named "KMenu."

AutoCorrect.TwoInitialCapsExceptions("KMenu").Delete

The index number represents the position of the initial-capital exception in the TwoInitialCapsExceptions collection. The following example displays the name of the first item in the TwoInitialCapsExceptions collection.

MsgBox AutoCorrect.TwoInitialCapsExceptions(1).Name

If the TwoInitialCapsAutoAdd property is True, words are automatically added to the list of initial-capital exceptions. Use the Add method to add an item to the TwoInitialCapsExceptions collection. The following example adds "INdustry" to the list of initial-capital exceptions.

AutoCorrect.TwoInitialCapsExceptions.Add Name:="INdustry"
Show: