M
MM_B
In Word 2003, if I use the same macro that I used to use hundreds of
times in Word 2000 to find a certain character 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've been able to use
font parameters in all other versions of Word previously.
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
It seems that this problem applies only to very common fonts, especially
ones that are defaults in HTML, like Courier New, Times New Roman, and Arial
-- but these are exactly the fonts I need to distinguish between in some of
my work.
Thanks!
times in Word 2000 to find a certain character 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've been able to use
font parameters in all other versions of Word previously.
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
It seems that this problem applies only to very common fonts, especially
ones that are defaults in HTML, like Courier New, Times New Roman, and Arial
-- but these are exactly the fonts I need to distinguish between in some of
my work.
Thanks!