I am trying to create a function which identify only the Pure Alpha characters and ignore the Special characters.
And similar to this looking for one more function that is Pure Numeric characters ignoring the special character.
But my code is not doing what i am looking for. Your help will be much appreciated.
Public Function IsLetters(s As String) As Boolean
Dim i As Long
IsLetters = False
For i = 1 To Len(s)
If Not Mid(s, i, 1) Like "[a-zA-Z]" Then Exit Function
Next i
IsLetters = True
End Function