OK ... that explains why it hasn't worked for me ...
Would it work if I stored the cell.address of each successful find of (i) as
say 'last_ i_add'
and then, instead of using FindNext(i)
I used Find (i) with the option After 'last_i_add' .... similar to code
below
TIA
(I've said it before and I'll say it again ....you guys are amazing)
Last_i_Add="A1"
Set i = .Find(varA, lookin:=xlValues, )
If Not i Is Nothing Then
First_i_Add = i.Add
Last_i_Add = i.Address
Set p= Find(varP, lookin:=xlValues,)
If Not p is Nothing Then
Do
Set p= FindNext(varP)
If Not p is Nothing Then
Code
End If
Loop While Not p Is Nothing And p.Address <
first_p_Address
End if
End If
'using 'After:=last_i_Add' for subsequent finds of varA
Do
Set i = .Find(varA, lookin:=xlValues, After:=Last_i_Add )
If Not i Is Nothing Then
Last_i_Add = i.Address
Set p= Find(varP, lookin:=xlValues,)
If Not p is Nothing Then
Do
Set p= FindNext(varP)
If Not p is Nothing Then
Code
End If
Loop While Not p Is Nothing And p.Address <
first_p_Address
End if
End if
Loop While Not i Is Nothing And last_i.Address < first_i_Address
"Dick Kusleika" wrote in message
...
No, it's not possible. Every time you perform a Find, the data that would
make FindNext work is erased. It's just a limitation of the Find method.
For Find(p) you'll need to loop through the cells if you want FindNext(i)
to work.
--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com
Is it possible to have nested finds
Find(i)
Find (p)
Do
FindNext(p)
Loop
FindNext(i)
Apologies for the mangling of the code but I hope you get the gist
Regards & TIA