Chrissirhc
Programmer
if lTheDate = 0 Or InStr(rTemp1.Cells(1, 1).Value, "Strange") = 0 Or InStr(rTemp1.Cells(1, 1).Value, "Special") = 0
then
msgbox "no matches"
else
msgbox "found a match"
I've checked and InStr(rTemp1.Cells(1, 1).Value, "Special") does indeed = 1, but the else part of this if condition doesn't get executed.
Any ideas?
Thansk,
Chris
then
msgbox "no matches"
else
msgbox "found a match"
I've checked and InStr(rTemp1.Cells(1, 1).Value, "Special") does indeed = 1, but the else part of this if condition doesn't get executed.
Any ideas?
Thansk,
Chris