The information in this article applies to:
SUMMARYThe following Microsoft Word macro examples can be used to change all characters formatted in one font to another font. For example, you can change all characters that originally occur in Arial to a font such as Times New Roman. MORE INFORMATION
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN
RISK. Microsoft provides this macro code "as is" without warranty of any
kind, either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
Word 6.0, 6.0a, 6.0c, 7.0, 7.0aThe following macro changes all Arial-formatted characters in a document to Courier New.
Word 2.xThe following macro changes all Arial-formatted characters in a document to Courier New.
NOTE: The above macro does not prompt you before it changes the font.
In order to be prompted to replace each occurrence of the font, remove
the .ReplaceAll argument from the final EditReplace line of the macro.
Word for Windows 1.xThe following macro changes all Helvetica-formatted characters in a document to Courier:
The above macro will not prompt you when it finds an occurrence of the
Helvetica font. Because Confirm is set to 0, all occurrences will be
changed at once (throughout the entire document). In order to be
prompted for each change, set the Confirm option to 1 in the above
macro example.
REFERENCES"Using WordBasic," by Microsoft and WexTech Systems, pages 181, 187 Additional query words: search character
Keywords : kbmacro kbmacroexample winword macword word6 winword2 word7 word95 |
Last Reviewed: October 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |