Microsoft KB Archive/51134

From BetaArchive Wiki

Inserting ANSI Character Codes from a Macro

PSS ID Number: Q51134 Article last modified on 05-14-1991

1.00 MS-DOS

Summary: The following macro prompts you for an ANSI character code and inserts the corresponding ANSI character at the insertion point: Sub MAIN AnsiChar$ = InputBox<math display="inline">("Enter the ANSI Code", "ANSI Character") AnsiNum = Val(AnsiChar</math>) Insert Chr$(AnsiNum) End Sub

Reference(s):

Additional Keywords: w4wmacro