bobkap
Active Member
- Joined
- Nov 22, 2009
- Messages
- 323
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
I am trying to see if a string contains a certain word or just letters like "ABC". This line of code I have works but ONLY if the word I'm looking for is at the very beginning of the string. If the word is say starting at the 5th character of the string I get a zero for the result. How should I write this so that I will get a hit no matter where my word is?
"If InStr((Cells(mirow, micol)), "ABC") = 1 Then"
"If InStr((Cells(mirow, micol)), "ABC") = 1 Then"