Well, i dont know if a .Find function declares a variable as a range.
this is a portion of my code.
With Selection
Set j = .Find("Elder", , , , xlByColumns)
If Not j Is Nothing Then
Set comp1 = j.Offset(2, 0)
If j.Offset(2, 0) <> "Elder" Then
apmtAddress1 = j.Row
Set apmtcdn1 = j
apmtlist1 = j.Offset(2, 0)
Else
Set comp2 = j.Offset(2, 0)
Set j = .FindNext(j)
apmtlist1 = j.Offset(2, 0)
End If
................................(goes further with other If-thens)
even with putting the (.Value) in there after the .Offset(2, 0) it is
giving me the same error code.
"royUK" wrote:
>
> What have you declared J as? If it is a Range then it should work:
>
>
> Code:
> --------------------
> If j.offset(2,0).Value <> "Elder" Then 'etc
> --------------------
>
>
> --
> royUK
>
> Hope that helps, RoyUK
> For tips & examples visit my 'web site' (http://www.excel-it.com/)
> ------------------------------------------------------------------------
> royUK's Profile: http://www.thecodecage.com/forumz/member.php?userid=15
> View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=47036
>
>