TTom
Well-known Member
- Joined
- Jan 19, 2005
- Messages
- 518
To Find First empty row in column:
FirstEmptyRow = Range("A65000").End(xlUp).Row + 1
Is there a way to write code to find first empty only when two, or more empty rows in in sequence are found? (# row to be specified)
Purpose: I often have a sheet that has a blank row to space things in layout as in pivot table reports, sometimes it two or more rows, but I want to find where the skip is greater than that I may specify such as if three empty rows are found in sequence then the first one of these is my end of data plus one.
I could do this with a loop that advances until offset of x rows is empty, but this eats up time in running procedure and I'm looking for more efficient way to write code...
FirstEmptyRow = Range("A65000").End(xlUp).Row + 1
Is there a way to write code to find first empty only when two, or more empty rows in in sequence are found? (# row to be specified)
Purpose: I often have a sheet that has a blank row to space things in layout as in pivot table reports, sometimes it two or more rows, but I want to find where the skip is greater than that I may specify such as if three empty rows are found in sequence then the first one of these is my end of data plus one.
I could do this with a loop that advances until offset of x rows is empty, but this eats up time in running procedure and I'm looking for more efficient way to write code...