Class OtherCorrectionsException (Word VBA)
The class OtherCorrectionsException represents a single AutoCorrect exception. The OtherCorrectionsException object is a member of the OtherCorrectionsExceptions collection. To use a OtherCorrectionsException class variable it first needs to be instantiated, for example
Dim oce as OtherCorrectionsException
Set oce = AutoCorrect.OtherCorrectionsExceptions(Index:=1)
For Each
Here is an example of processing the OtherCorrectionsException items in a collection.
Dim oce As OtherCorrectionsException
For Each oce In AutoCorrect.OtherCorrectionsExceptions
Next oce
Delete
Deletes the specified exception.
AutoCorrect.OtherCorrectionsExceptions(1).Delete
Index
Returns a Long that represents the position of an item in a collection.
Dim lngIndex As Long
lngIndex = AutoCorrect.OtherCorrectionsExceptions(1).Index
Name
Returns the name of the specified object.
Dim strName As String
strName = AutoCorrect.OtherCorrectionsExceptions(1).Name