Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Code for Unicode

Gary,
My Excel help has given up at the moment, so I can't tell if there is
something built-in, but these UDFs work :

Public Function CodeUnicode(argIn As Variant) As Long
CodeUnicode = AscW(argIn)
End Function

Public Function CharUnicode(argIn As Long) As String
CharUnicode = ChrW(argIn)
End Function

NickHK

"Gary''s Student" wrote in message
...
If I have a character in a cell, say a in cell A1, then
=CODE(A1) will give me the code for this character, in this case 97.

What can give me the "code" for a unicode character? (between 1 and 65536)
--
Gary's Student



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Code for Unicode

Thank you
--
Gary's Student


"NickHK" wrote:

Gary,
My Excel help has given up at the moment, so I can't tell if there is
something built-in, but these UDFs work :

Public Function CodeUnicode(argIn As Variant) As Long
CodeUnicode = AscW(argIn)
End Function

Public Function CharUnicode(argIn As Long) As String
CharUnicode = ChrW(argIn)
End Function

NickHK

"Gary''s Student" wrote in message
...
If I have a character in a cell, say a in cell A1, then
=CODE(A1) will give me the code for this character, in this case 97.

What can give me the "code" for a unicode character? (between 1 and 65536)
--
Gary's Student




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
unicode entries danpt Excel Discussion (Misc queries) 2 July 18th 09 06:07 AM
Unicode in CSV files Questioner Excel Discussion (Misc queries) 5 June 28th 09 01:38 PM
unicode oldLearner57 Excel Discussion (Misc queries) 2 September 30th 08 06:18 AM
Unicode Shafiee Excel Worksheet Functions 0 January 16th 06 05:21 PM
Unicode Help xcelion Excel Programming 2 August 31st 05 10:29 AM


All times are GMT +1. The time now is 08:14 PM.

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"