Class OtherCorrectionsExceptions (Word VBA)

A collection of OtherCorrectionsException objects that represents the list of words that Microsoft Word won't correct automatically. To use a OtherCorrectionsExceptions class variable it first needs to be instantiated, for example


Dim oces as OtherCorrectionsExceptions
Set oces = AutoCorrect.OtherCorrectionsExceptions

For Each

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


Dim oce As OtherCorrectionsException
For Each oce In AutoCorrect.OtherCorrectionsExceptions
	
Next oce

Add

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.

Add (Name)

Name: The word that you want Word to overlook.


AutoCorrect.OtherCorrectionsExceptions.Add Name:="myCompany"

Count

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


Dim lngCount As Long
lngCount = AutoCorrect.OtherCorrectionsExceptions.Count

Item

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