I need a macro to find ^m where the font is Verdana and the replace is ^m with the font Arial.
I can set up the Find and Replace to do that but when I record that action as a macro I get:
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = “^m”
.Replacement.Text = “^m”
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
As you can see there is no reference to the fonts. Could someone please advise me what amendment is needed to the code?
In case it is relevant, I will be following that up with a second part to the macro so that after the above has been processed, the following find and replace will run.
replace ^m^p with ^m