Hi,
In VBA, you could do something like:
Range("g7").Select
RowsOfData = ActiveCell.CurrentRegion.Rows.Count
This only works if the colums to the left and right, and the rows above cell G7 are empty - other wise will count extra rows - so may not be exactly what you're after?
Could always write a do loop with activecell.offset, checking for blank cell - but may be a bit like overkill!!
|