Record Count (There has to be an easier way...)
One way:
Dim nCount As Long
nCount = Range(Cells(n, 1), Cells(Rows.Count, 1).End(xlUp)).Count
where n is your starting row.
In article ,
pikus wrote:
Up until now I've been counting the number of records in a particular
sheet with this:
Do
x = x + 1
Loop Until Worksheets(1).Cells(x, 1).Value = ""
This seems like the long way to do this. And it only runs until it
hits a blank cell. Is there an easier way to do this that preferably
won't stop at the first blank line? - Pikus
|