Class TwoInitialCapsException (Word VBA)

The class TwoInitialCapsException 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. To use a TwoInitialCapsException class variable it first needs to be instantiated, for example


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

For Each

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


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

Delete

Deletes the specified two initial-capital exception from the collection of AutoCorrect exceptions.


AutoCorrect.TwoInitialCapsExceptions(1).Delete

Index

Returns a Long that represents the position of an item in a collection.


Dim lngIndex As Long
lngIndex = AutoCorrect.TwoInitialCapsExceptions(1).Index

Name

Returns the name of the specified object.


Dim strName As String
strName = AutoCorrect.TwoInitialCapsExceptions(1).Name