D
Dave Peterson
VBA has its own version of =find().
Take a look at VBAs help for InStr.
=find() will return an error if there isn't a match.
Dim j as Variant 'could be an error
j = application.Find(v, Cells(cnt, 1).Value)
if iserror(j) then
msgbox "not there"
else
'it's there
end if
may work for you, but InStr will be much easier.
Take a look at VBAs help for InStr.
=find() will return an error if there isn't a match.
Dim j as Variant 'could be an error
j = application.Find(v, Cells(cnt, 1).Value)
if iserror(j) then
msgbox "not there"
else
'it's there
end if
may work for you, but InStr will be much easier.