First, I'd add all those other arguments to the .find statement. .Find will use
whatever parms were used in the previous .find (either by the user or by code)
and that may not be what you want.
Second, .Find can be tempermental with dates.
Sometimes, a small change is enough:
Set r1 = r.Find(what:=clng(target), ....rest of parms here)
> I am trying to search a column of date that contains dates that were
> calculated. (starting date + # of days out = end date). I am using the
[quoted text clipped - 31 lines]
>
> End Sub

Signature
Dave Peterson
OssieMac - 25 Jul 2007 04:52 GMT
Like Dave says you need the other arguments. You can use xlFormulas or
xlValues when finding dates which are not the result of a formula on the
spreadsheet.
However if the dates are the result of a formula on the spreadsheet, then
use xlValues. The following will work for data where the dates are the result
of either a formula or directly entered.
Set r1 = r.Find(What:=target, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
Regards,
OssieMac
> First, I'd add all those other arguments to the .find statement. .Find will use
> whatever parms were used in the previous .find (either by the user or by code)
[quoted text clipped - 41 lines]
> >
> > End Sub