OMath Object (Word)

Represents an equation. OMath objects are members of the OMaths collection.

Remarks

Use the Add method of the OMaths collection to create an equation and add it to a document, selection, or range. The following example creates an equation and uses the BuildUp method to convert the equation to professional format.

Dim objRange As Range 
Dim objEq As OMath 
 
Set objRange = Selection.Range 
objRange.Text = "Celsius = (5/9)(Fahrenheit - 32)" 
Set objRange = Selection.OMaths.Add(objRange) 
Set objEq = objRange.OMaths(1) 
objEq.BuildUp

Methods

Name
BuildUp
ConvertToLiteralText
ConvertToMathText
ConvertToNormalText
Linearize
Remove

Properties

Name
AlignPoint
Application
ArgIndex
ArgSize
Breaks
Creator
Functions
Justification
NestingLevel
Parent
ParentArg
ParentCol
ParentFunction
ParentOMath
ParentRow
Range
Type

See also

Word Object Model Reference