Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default ASCII CODE of a character...

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,

  #2   Report Post  
Posted to microsoft.public.excel.programming
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,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default ASCII CODE of a character...

If you just want to see what the ASCII character is for a keyboard character,
you can type <ascii character set in VBA help and it will bring up a menu
for 0-127 and 128- End.

"SupperDuck" wrote:

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,

  #4   Report Post  
Posted to microsoft.public.excel.programming
Mo2 Mo2 is offline
external usenet poster
 
Posts: 34
Default ASCII CODE of a character...

hey

well im not sure i know how to do it through code, but maybe this'll help:

Go to Insert - Symbol..

scroll through them and click on the one you're looking for.
at the bottom of this window, it tells the character code.
to the right of it, theres a drop down menu thingy that allows you to switch
between viewing the
ASCII(hex), ASCII(decimal), and UNICODE(hex)
code for a character.

i'm not sure if this helped you


"SupperDuck" wrote:

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,

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plus or minus character ...Its ASCII value Srinivasulu B[_2_] New Users to Excel 6 September 20th 09 06:44 AM
ascii character in custom format Mike K Excel Discussion (Misc queries) 2 October 20th 06 02:51 PM
How to: Convert character to ASCII code efernandes67 Excel Discussion (Misc queries) 1 January 21st 06 04:07 PM
Cannot insert extended ascii character Jeff Eckermann Excel Discussion (Misc queries) 1 October 7th 05 06:04 AM
Delete ascii character 127 CyndyG Excel Programming 2 May 4th 05 10:38 PM


All times are GMT +1. The time now is 11:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"