VBA - Hex To ASCII

A

ajocius

Group,
Is there a function in VBA that will convert hex into ascii.
Example assume I have 0x39 and I want it to convert it to ascii, or 9.
Same goes for the alpha characters as well A thru Z both lower case and
upper case.

Tony
 
C

C01d

Excel provides the Char(value) function, where value is the decima
representation of the ASCII character. The function returns the ASCI
character represented by the number.

Note that before using this function, your code will have to conver
the hexadecimal value to decimal first
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top