In Word 2003, if I use the same macro that I used to use hundreds of
times in Word 2000 to find text in a certain font, the
macro doesn’t work. There is some sort of difference which I can see
if I look in the Find dialog box after running the macro search:
under the search box where it shows the font, it says Font: (Default)
Courier New. But if I create the search manually in the dialog box
and just select Courier New in the dialogs, then in the Find dialog
box it shows Font: Courier New [as it always used to] AND — now the
search works! Is there any way to specify the font name within the
macro in Word 2003 without ending up with that “Default” bit? I have
always been able to use font parameters in searches in previous versions of Word.
This is in Word 2003 SP2, on Windows XP SP2. And I specify the font
name within the macro in either of these two ways but get the same
result:
right before the Find loop, either:
Selection.Find.Font.Name = “Courier New”
or With Selection.Find.Font .Name = “Courier New” End With
The problem appears to be limited to very common fonts, like Courier New,
Times New Roman, and Arial (default fonts in HTML). But in my work sometimes
these are exactly the fonts in which I need to find something.
Thanks!