Using the ASCII and ANSI Characters in Word for Windows

Last reviewed: July 30, 1997
Article ID: Q58917
The information in this article applies to:
  • Microsoft Word for Windows, versions 1.0, 1.1, 1.1a
  • Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a

SUMMARY

Microsoft Word for Windows allows you to access special characters from two character sets.

MORE INFORMATION

The 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 SUB

Kbcategory: kbusage kbmacro KBSubcategory:


Additional query words: winword2 winword 7.0 7.0a word95 winword
word7 word6
Version : 1.x 2.x 6.0 6.0a 6.0c 7.0 7.
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.