So to be more specific I want to retrieve the equation format from a word document that has plain text. I am sorry in my last post I said VMA when I wanted to say VBA. I received a document that has Fc (the c is a subscript) so in the original word document it was an equation. But in the file I received it has the same format but it is not an actual equation object. So do you know if there is any way to retrieve those objects?
I am using this script to highlight all the equations( the script is working fine if there is a proper equation object)
Code:
Sub SelectAllEquations()
Dim xMath As OMath
Dim I As Integer
With ActiveDocument
.DeleteAllEditableRanges wdEditorEveryone
For I = 1 To .OMaths.Count
Set xMath = .OMaths.Item(I)
xMath.Range.Paragraphs(1).Range.Editors.Add wdEditorEveryone
Next
.SelectAllEditableRanges wdEditorEveryone
.DeleteAllEditableRanges wdEditorEveryone
End With
End Sub