I have inserted text and equations (Equation Editor 3.0)into a Word 2003 document. The inserted equations were done in a larger font so I need to loop through the equations, simply to open and close each one, in order to change the font size. I tried to record a maco and then add SendKey commands to replicate doing it manually, but to no avail. Can someone tell me what is wrong with my code?
Code:
Sub UpdateEqns()
Selection.GoTo What:=wdGoToEquation, Which:=wdGoToNext, Count:=1, Name:=""
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
SendKeys "%eoo"
SendKeys "%fx"
End Sub