excel vba check if a string only contains alpha characters

The solution for “excel vba check if a string only contains alpha characters” can be found here. The following code will assist you in solving the problem.

‘VBA function to test if a string contains only letters:

Function IsAlpha(s) As Boolean
IsAlpha = Len(s) And Not s Like “*[!a-zA-Z]*”
End Function

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts