vba: how to detect if current character letter or number

Posted by I__ on Stack Overflow See other posts from Stack Overflow or by I__
Published on 2010-06-11T18:13:28Z Indexed on 2010/06/11 18:23 UTC
Read the original article Hit count: 156

Filed under:
|
|

i would like to be able to check whether a character is a letter (including caps and lcase) or a number. something like:

ascii(mid(some_String,1,1)) > 10 and ascii(mid(some_String,1,1)) < 40

or

ascii(mid(some_String,1,1)) > 100 and ascii(mid(some_String,1,1)) < 200

how do i do this?

© Stack Overflow or respective owner

Related posts about excel

Related posts about vba