excel vba check if string entirely alpha code example
Example: excel vba check if string entirely alpha
'VBA function to check if string is ENTIRELY alpha:
Function IsAlpha(s) As Boolean
IsAlpha = Len(s) And Not s Like "*[!a-zA-Z]*"
End Function