Microsoft KB Archive/51134

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$("Enter the ANSI Code", "ANSI Character") AnsiNum = Val(AnsiChar$ ) Insert Chr$(AnsiNum) End Sub

Reference(s):

Additional Keywords: w4wmacro