View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default Get character code within string

Hi Robert,

Am Sat, 21 Mar 2015 12:45:07 -0700 schrieb Robert Crandal:

What are some ways to determine the character code
of an individual character within a string? Will I need
to use the Chr() function?


try Asc:
For example the code of the first character of myStr:
myChr = Asc(Left(myStr, 1))
And declare myChr as integer or long


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional