Hi,
I have a have several strings that are only unique by the last 3 characters and I need to put in an if statement.
However I am having trouble with it:
If not Right (listbox1, 3) = "123" OR "234" or "345" then
DoWhatever
End if
You should notice that the above code doesn't work. (As I just found out). I need it to be able to do what the above code says in plain english (not vb terms). So basically if it doesn't match any of those then it goes to DoWhatever. I could do this with multiple If-Else-End if statements, but I'm wondering if there is a way to do this similar to the provided code? Am I missing some keyword? (tried a lot of them too).
Thanx in advance,
Scott




Reply With Quote