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)

The following procedures can be used to set variables of type OtherCorrectionsException: OtherCorrectionsExceptions.Add, OtherCorrectionsExceptions.Item and AutoCorrect.OtherCorrectionsExceptions

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


Deletes the specified exception.



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

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


Returns the name of the specified object.

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


Returns an object that represents the parent object of the specified OtherCorrectionsException object.

Dim objParent As Object
Set objParent = AutoCorrect.OtherCorrectionsExceptions(1).Parent


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

If the OtherCorrectionsAutoAdd property is True, words are automatically added to the list of other corrections exceptions.

Syntax : expression.Add (Name)

Name: The word that you want Word to overlook.

AutoCorrect.OtherCorrectionsExceptions.Add Name:="myCompany"


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

Dim lngCount As Long
lngCount = AutoCorrect.OtherCorrectionsExceptions.Count


Returns an individual OtherCorrectionsException object in a collection.

Syntax : expression.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 oce As OtherCorrectionsException
Set oce = AutoCorrect.OtherCorrectionsExceptions(Index:=1)


Returns an object that represents the parent object of the specified OtherCorrectionsExceptions object.

Dim objParent As Object
Set objParent = AutoCorrect.OtherCorrectionsExceptions.Parent