LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Test for alpha char

I'm trying to test a string for alpha chars, if alpha char append char to a
new string
The following does not work. Is there a tweak I can apply?

l_Alpha_chars = "abcd1"
For q = 1 To Len(l_Alpha_chars)
l_chr = Mid(l_Alpha_chars, q, 1)
If l_chr = [a..z] Then
NewStr = NewStr & l_chr
End If
Next q
 
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
formula with alpha char in cell soni Excel Discussion (Misc queries) 7 January 9th 09 04:04 PM
Get "####" when use alpha char in a cell referenced by a formula Leo Excel Worksheet Functions 5 January 8th 09 06:18 PM
How do I make a cell allow only 24 alpha/num. char.to be entered Fred@JFK Excel Programming 1 November 2nd 06 02:45 PM
test if a character in a string is alpha Matilda Excel Programming 7 October 16th 06 02:36 PM
Test for char in string & separating if present Ken Loomis Excel Programming 5 October 7th 04 06:38 PM


All times are GMT +1. The time now is 02:23 PM.

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

About Us

"It's about Microsoft Excel"