vb Code:
cnt = 0
For i = 14 To 1000
If (asheet.Cells(i, "J").Value = 0 Or asheet.Cells(i, "J").Value = "") And (asheet.Cells(i, "K").Value = 0 Or asheet.Cells(i, "K").Value = "") Then
Else
cnt = cnt + 1 ' do your stuff here, this counted that 8 rows would be processed in your sample sheet
End If
'last row i am finding this way
If asheet.Cells(i, "D").Value = "" And asheet.Cells(i, "E").Value = "" Then
GoTo last
End If
Next
last:
Stop ' put you closing code here, this happened at row 27 in your sample sheet (remove Stop)