hi,
i have data that begins in A5. so i would use the following and the macro will stop when it reaches a blank row in column A.
[VBA]For I = 5 To 9000
If Range("A" & I).FormulaR1C1 = "" Then
Range("A5").Select
MsgBox "COMPLETED"
Exit Sub
End If[/VBA]
the problem i have is that sometimes the data can begin anywhere in column A, beginning with row 5 and downward, 9000 being the max.
how can i modify my coding to run when it sees the first row populated and then stop with the next blank?
thanks