Class FirstLetterExceptions (Word VBA)

A collection of FirstLetterException objects that represent the abbreviations excluded from automatic correction. To use a FirstLetterExceptions class variable it first needs to be instantiated, for example


Dim fles as FirstLetterExceptions
Set fles = AutoCorrect.FirstLetterExceptions

For Each

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


Dim fle As FirstLetterException
For Each fle In AutoCorrect.FirstLetterExceptions
	
Next fle

Add

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

If the FirstLetterAutoAdd property is True, abbreviations are automatically added to the list of first-letter 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 first letter exceptions in the collection.


Dim lngCount As Long
lngCount = AutoCorrect.FirstLetterExceptions.Count

Item

Returns an individual FirstLetterException 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 fle As FirstLetterException
Set fle = AutoCorrect.FirstLetterExceptions(Index:=1)