Class OMathAutoCorrectEntries (Word VBA)

The class OMathAutoCorrectEntries represents a collection of math AutoCorrect entries. Use the OMathAutoCorrectEntry object to access individual AutoCorrect entries. To use a OMathAutoCorrectEntries class variable it first needs to be instantiated, for example


Dim omas as OMathAutoCorrectEntries
Set omas = Application.OMathAutoCorrect.Entries

Add

Creates an equation auto correct entry and returns an OMathAutoCorrectEntry object.

Add (Name, Value)


Dim strName As String: strName = 
Dim strValue As String: strValue =  
Dim oma As OMathAutoCorrectEntry
Set oma = Application.OMathAutoCorrect.Entries.Add(Name:=strName, Value:=strValue)

Arguments

The following arguments are required:

Name (String) - The name of the autocorrect entry. Corresponds to the Name property of the OMathAutoCorrectEntry object.

Value (String) - The value of the autocorrect entry. Corresponds to the Value property of the OMathAutoCorrectEntry object.

Count

Returns the number of items in the OMathAutoCorrectEntries collection.


Dim lngCount As Long
lngCount = Application.OMathAutoCorrect.Entries.Count

Item

Returns an OMathAutoCorrectEntry object that represents the specified item in the collection.

Item (Index)

Index: Specifies a String or Integer that represents the name or ordinal position of the object in the collection.


Dim oma As OMathAutoCorrectEntry
Set oma = Application.OMathAutoCorrect.Entries(Index:=1)