J
Julie
Hello,
I am writing macros to clean up converted WordPerfect documents and am
stumped trying to figure out how to find and remove directly applied font
names without,
- removing any other directly applied font formatting (size, bold, italic,
etc.), and
- without breaking the ability to later change the font of the underlying
style and have that change take effect for all paragraphs styled with that
style
(I don't know the name of the font to search for up front - could be any
font - always know the name of the font to apply in replacement - that is
the default paragraph font name).
Every method I try has its pitfalls (Word2000), including find each style
and replace each style with "no formatting", apply the underling paragraph
font to the paragraph, etc.
Final result must be that after macro finishes, if user changes the font of
the underlying style, the change takes effect for all paragraphs with that
style. All of the methods that I have tried are successful in applying the
correct font, but they break the ability to make subsequent font changes to
the underlying paragraph style and have those changes take effect for all
relevant paragraphs.
Formerly, in WordPerfect, I was able to achieve this end with a very simple
macro to find [Font] codes and replace with nothing.
Any help with this would be very much appreciated.
Thanks in advance,
Julie
I am writing macros to clean up converted WordPerfect documents and am
stumped trying to figure out how to find and remove directly applied font
names without,
- removing any other directly applied font formatting (size, bold, italic,
etc.), and
- without breaking the ability to later change the font of the underlying
style and have that change take effect for all paragraphs styled with that
style
(I don't know the name of the font to search for up front - could be any
font - always know the name of the font to apply in replacement - that is
the default paragraph font name).
Every method I try has its pitfalls (Word2000), including find each style
and replace each style with "no formatting", apply the underling paragraph
font to the paragraph, etc.
Final result must be that after macro finishes, if user changes the font of
the underlying style, the change takes effect for all paragraphs with that
style. All of the methods that I have tried are successful in applying the
correct font, but they break the ability to make subsequent font changes to
the underlying paragraph style and have those changes take effect for all
relevant paragraphs.
Formerly, in WordPerfect, I was able to achieve this end with a very simple
macro to find [Font] codes and replace with nothing.
Any help with this would be very much appreciated.
Thanks in advance,
Julie