Guys,
funny problem, trying to execute a bit of code.
Problem is that the results are incorrect when running normally (or in debug),
however, when executing the same little step, using the same variables, results in a correct result.
little line is:
In debug r = Nothing in direct window r=Something
(i am running the code in the direct window during the debugging)
"In three words I can sum up everything I've learned about life: it goes on."
- Robert Frost 1874-1963
funny problem, trying to execute a bit of code.
Problem is that the results are incorrect when running normally (or in debug),
however, when executing the same little step, using the same variables, results in a correct result.
little line is:
Code:
Set r = Range(strRange).Find(What:=CDate(strDat), LookIn:=xlValues _
, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
If r Is Nothing Then
....
In debug r = Nothing in direct window r=Something
(i am running the code in the direct window during the debugging)
"In three words I can sum up everything I've learned about life: it goes on."
- Robert Frost 1874-1963