Use the Chr() and Asc() functions to convert between the numerical and string representations of VBA's character code set : Char « Data Type Functions « VBA / Excel / Access / Word






Use the Chr() and Asc() functions to convert between the numerical and string representations of VBA's character code set

 
Sub chrDemo()
    MsgBox Chr(65)
End Sub

 








Related examples in the same category

1.Selected Characters from VBA's Character Code Set
2.Use the Asc() function to convert a character to its numerical representation