TwoInitialCapsExceptions Collection Object
AutoCorrect TwoInitialCapsExceptions TwoInitialCapsException |
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.
Using the TwoInitialCapsExceptions Collection
Use the TwoInitialCapsExceptions property to return the TwoInitialCapsExceptions collection. The following example displays the items in this collection.
For Each aCap In AutoCorrect.TwoInitialCapsExceptions
MsgBox aCap.Name
Next aCap
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"
Use TwoInitialCapsExceptions(index), where index is the initial cap name or the index number, to return a single TwoInitialCapsException object. The following example deletes the initial-capital item 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
Properties | Application Property | Count Property | Creator Property | Parent Property
Methods | Add Method | Item Method
Parent Objects | AutoCorrect
Child Objects
See Also | FirstLetterExceptions Collection Object