VBA Chr Function: The Chr function in VBA returns the character equivalent to a supplied character code between 0 and 255.

Syntax

Parameter

CharCode (required) – This parameter represents the character code for which you require the equivalent character.

Return

This function returns the character equivalent to a supplied character code between 0 and 255.

Example 1

Output

A

VBA Chr Function

Example 2

Output

a

VBA Chr Function

Example 3

Output

VBA Chr Function

Pin It on Pinterest

Share This