Direwolf
With the code that you pasted in this message It looks like my code has
been word wrapped at some stage.
When a _ is at the end of a line VBA joins the next line of code to
the previous to make up a continous single command
New code has _ added to 2 lines
lWb2Row = Ws2A.Find(What:=Cell.Value, After:=ActiveCell, _
LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False).Row
Put the Then at the end ot the If statment row
eg If(balh<blahblah) then
If Ws1.Range("b" & Cell.Row) < Ws2.Range("b" & lWb2Row)
Then
---
Message posted from
http://www.ExcelForum.com/