View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default ASCII CODE of a character...

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" wrote in message
...
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,