Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Get character code within string

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



  #2   Report Post  
Posted to microsoft.public.excel.programming
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
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
code to remove rows containing a character string kevin Excel Discussion (Misc queries) 4 November 20th 08 03:06 PM
Stepping through each character in a character string Barb Reinhardt Excel Programming 3 June 6th 07 06:23 PM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
How can I use the " character in a string TFN Excel Programming 2 June 2nd 06 08:58 AM
Function to return Character Position of Xth character within a string Andibevan[_2_] Excel Programming 4 June 9th 05 03:24 PM


All times are GMT +1. The time now is 04:25 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"