This could tell you how many rows there are:
t1$ = Cells(1, 1).Value
row = 1
If t1$ <> "" Then
row = 2
Do
t1$ = Cells(row, 1).Value
If t1$ = "" Then
maxrow = row - 1
Exit Do
Else
row = row + 1
End If
Loop
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.