Hi b0x4it,
I've been offline for a few hours - sleeping! We don't all live in your time zone.
You can manipulate the numbers in an equation as a group with code like:
Code:
Sub Demo()
Dim MathObj As Object
For Each MathObj In ActiveDocument.OMaths
With MathObj
.ConvertToNormalText
With .Range.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "[0-9]"
.Replacement.Text = "^&"
.Replacement.Font.Italic = True
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
End With
Next
End Sub
Basically, this is just a
wildcard Find/Replace on the oMath ranges