The information in this article applies to:
SUMMARY
The following WordBasic macros generate a list of the fonts recognized by
Microsoft Word and display a sample of each font.
Q105765 Macros in the CONVERT, LAYOUT, TABLES, and MACRO60 Templates MORE INFORMATIONWord 2.x, 6.x, 7.xWARNING: 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.
NOTE: ScreenUpdating is for use with Word version 6.x and 7.x only. If you
are using this macro with an earlier version of Word, eliminate the
ScreenUpdating line.
CountFonts() returns the total number of fonts available to the selected printer. The For loop used above with CountFonts() sets up a loop that inserts the font names (FontName$) and the sample text. For a macro to use with Microsoft Word 97 please see the following article in the Microsoft Knowledge Base: Q170970 WD97: Macro to Generate List of Available Fonts in Word REFERENCE"Using WordBasic," by WexTech Systems and Microsoft, pages 168 and 210 Additional query words: Font FontName$ sample
Keywords : kbmacro kbmacroexample winword macword word6 word7 word95 |
Last Reviewed: September 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |