is there a way to check if a string contains a character
Printable View
is there a way to check if a string contains a character
Code:If InStr(1, String, character) <> 0 Then
MsgBox "Character is in the String!"
End If
Perhaps you can try this
Code:If Len(Text1) <> 0 Then
MsgBox "The is " Len(Text) & " character(s) found in the string"
Else
MsgBox "No character found in the string"
End If
Like Operator..just finds occurance not number or occurences
IF myString Like "*/*" then Msgbox " / involved"