In VBA, use the Asc function.
Debug.Print Asc("A"), Hex(Asc("A"))
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting LLC
www.cpearson.com
(email on the web site)
"SupperDuck" <(E-Mail Removed)> wrote in message
news:B5081677-AD33-4DA1-9879-(E-Mail Removed)...
> Hi,
>
> I use =code function in excel to see the ascii code for a character. But
> when i try to use the "code" function, it crashes.
>
> Could you please advise the code to see the ascii code?
>
> Thanks and regards,
>