Thanks for your response Dave, handy as always.
I'm using like, i want to find apt as part of and address text.
I was using "* apt *" but i realized that it was case sensitive, I had to
use Option Compare Text to make it work.
if lcase(mystr) like lcase("* apt *") then
to make sure you're looking at lower case on either side.
There's another function that you may want to keep in mind: InStr
It has a parm that you can specify to ignore case.
dim AptPos as long
aptpos = instr(1,mystr," apt ",vbtextcompare)
if aptpos = 0 then
'not there
else
'starts at aptpos
end if
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.