Using the ASCII and ANSI Characters in Word for WindowsLast reviewed: July 30, 1997Article ID: Q58917 |
The information in this article applies to:
SUMMARYMicrosoft Word for Windows allows you to access special characters from two character sets.
MORE INFORMATIONThe first set is referred to as the ANSI character set. These characters, not the ASCII characters, are the characters returned when using the CHR$() macro function. You can also get these characters by pressing the ALT key while you type 0 (zero) and the ANSI table number for the character on the numeric keypad. The second set of characters is called the IBM PC extended character set. These characters can be accessed only through the numeric keypad by pressing the ALT key while you type the table number on the numeric keypad. The "Microsoft Word for Windows User's Reference" does not contain both tables, only the ANSI. Both tables appear on pages 233-238 in the "Microsoft Windows User's Guide" version 2.0 manual in Appendix D. Both of these tables also appear on pages 567-570 of the "Microsoft Windows User's Guide" appendix B. You can also get a list of the ANSI characters 128-255 by using the macro below. The macro brings up "What Font?". The entry must be a valid font for the driver you have chosen. You can see these by choosing Character from the Format menu and going through the Font's List box. The following is an example:
SUB MAIN FileNew FormatSection 4 a$ = InputBox$("WHAT FONT?", "FONT") B$ = InputBox$("WHAT SIZE?", "SIZE") Insert a$ + " " + B$ + CHR$(13) FOR I = 128 TO 255 Font "COURIER", 12 Insert STR$(I) + " " + CHR$(I) + "-" Font a$, VAL(B$) Insert CHR$(I) + CHR$(13) NEXT END SUBKbcategory: kbusage kbmacro KBSubcategory: |
Additional query words: winword2 winword 7.0 7.0a word95 winword
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |