Class TwoInitialCapsExceptions (Word VBA)

A collection of TwoInitialCapsException objects that represent all the items listed in the Don't correct box on the INitial CAps tab in the AutoCorrect Exceptions dialog box. To use a TwoInitialCapsExceptions class variable it first needs to be instantiated, for example


Dim tics as TwoInitialCapsExceptions
Set tics = AutoCorrect.TwoInitialCapsExceptions

For Each

Here is an example of processing the TwoInitialCapsExceptions items in a collection.


Dim tic As TwoInitialCapsException
For Each tic In AutoCorrect.TwoInitialCapsExceptions
	
Next tic

Add

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

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

Add (Name)

Name: The word with two initial capital letters that you want Microsoft Word to overlook.


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

Count

Returns a Long that represents the number of exceptions in the collection.


Dim lngCount As Long
lngCount = AutoCorrect.TwoInitialCapsExceptions.Count

Item

Returns an individual TwoInitialCapsException object in a collection.

Item (Index)

Index: The individual object to be returned. Can be a Long indicating the ordinal position or a String representing the name of the individual object.


Dim tic As TwoInitialCapsException
Set tic = AutoCorrect.TwoInitialCapsExceptions(Index:=1)