Class OMathRecognizedFunction (Word VBA)

The class OMathRecognizedFunction represents a recognized function. The OMathRecognizedFunction object is a member of the OMathRecognizedFunctions collection. To use a OMathRecognizedFunction class variable it first needs to be instantiated, for example


Dim omr as OMathRecognizedFunction
Set omr = Application.OMathAutoCorrect.Functions(Index:=1)

For Each

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


Dim omrFunction As OMathRecognizedFunction
For Each omrFunction In Application.OMathAutoCorrect.Functions
	
Next omrFunction

Delete

Deletes the specified recognized function from the list of the recognized functions.


Application.OMathAutoCorrect.Functions(1).Delete

Index

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


Dim lngIndex As Long
lngIndex = Application.OMathAutoCorrect.Functions(1).Index

Name

Returns a String that represents the name of an equation recognized function.


Dim strName As String
strName = Application.OMathAutoCorrect.Functions(1).Name