Greetings,
I posted this to Microsoft's forum ( and they're going to "try to internally report this issue." I'm hoping someone here as seen this and/or found a work-around.
Please know that this NOT specific to Arial, that is just an example.
We've written a macro that search and replaces a bunch of characters in 9 different fonts to other characters and fonts, and noticed that some of them were not getting done, yet the same character, within the same document, with the same font change WAS getting found. Stopping the macro after the search is loaded up using (for instance)
I'm seeing that the find dialog is showing "(Default)" in front of the font name being searched, as in "(Default) Arial".
The problem seems to be with how the font change was instituted in the text being searched, though I can't determine what is different between one that gets found and one that does not. If I set the find menu manually (without a macro) the "(Default)" does NOT show in the font dialog and the font is found in all instances.
If I clear the formatting on text that is initially NOT getting found using "Clear Formatting" from the style pane, or Ctrl + Shift + N, or "Selection.Style = "Default Paragraph Font" in VBA, and re-institute the font change to the SAME font it gets found with the macro.
So, I need to either set the font dialog with VBA in a way that does NOT make it read "(Default)" in front of the font name (like when I manually set it), or I need to detect when font change has whatever aspect it has that it causing it to NOT be found, and fix it before searching and replacing.
Any help or insight would be GREATLY appreciated.
Ken
I posted this to Microsoft's forum ( and they're going to "try to internally report this issue." I'm hoping someone here as seen this and/or found a work-around.
Please know that this NOT specific to Arial, that is just an example.
We've written a macro that search and replaces a bunch of characters in 9 different fonts to other characters and fonts, and noticed that some of them were not getting done, yet the same character, within the same document, with the same font change WAS getting found. Stopping the macro after the search is loaded up using (for instance)
Code:
Selection.find.found.font.name="Arial"
The problem seems to be with how the font change was instituted in the text being searched, though I can't determine what is different between one that gets found and one that does not. If I set the find menu manually (without a macro) the "(Default)" does NOT show in the font dialog and the font is found in all instances.
If I clear the formatting on text that is initially NOT getting found using "Clear Formatting" from the style pane, or Ctrl + Shift + N, or "Selection.Style = "Default Paragraph Font" in VBA, and re-institute the font change to the SAME font it gets found with the macro.
So, I need to either set the font dialog with VBA in a way that does NOT make it read "(Default)" in front of the font name (like when I manually set it), or I need to detect when font change has whatever aspect it has that it causing it to NOT be found, and fix it before searching and replacing.
Any help or insight would be GREATLY appreciated.
Ken