Class OMathRecognizedFunctions (Word VBA)

The class OMathRecognizedFunctions represents a collection of recognized functions. Use the OMathRecognizedFunction object to access individual members of the collection. To use a OMathRecognizedFunctions class variable it first needs to be instantiated, for example


Dim omrs as OMathRecognizedFunctions
Set omrs = Application.OMathAutoCorrect.Functions

Add

Creates a new recognized function and returns an OMathRecognizedFunction object.

Add (Name)

Name: The name of the recognized function.


Dim strName As String: strName =  
Dim omr As OMathRecognizedFunction
Set omr = Application.OMathAutoCorrect.Functions.Add(Name:=strName)

Count

Returns the number of items in the OMathRecognizedFunctions collection.


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

Item

Returns an OMathRecognizedFunction 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 omr As OMathRecognizedFunction
Set omr = Application.OMathAutoCorrect.Functions(Index:=1)