To be honest, I can't believe I've not been able to find the answer to this question either in Tek-Tips or on the net, but I can't, so I am looking for the Tek-Tips experts to put me straight!
I simply want to find out if a string contains any of some specified characters. I have tried
against a data-line of "82103 100j000000002" expecting the lowercase 'j' to trigger the If, but it isn't doing so.
Can anyone advise on how to achieve this?
Thanks in advance
I simply want to find out if a string contains any of some specified characters. I have tried
Code:
If InStr(1, strWholeRec, "[!0-9. ]", vbBinaryCompare) <> 0 Then
Can anyone advise on how to achieve this?
Thanks in advance