Hi,
I have a s/sheet which has multiple blocks of Rows.
I used Lastrow to get the last row and the Startrow to get the last block of rows.
However, I am unable to select two other blocks above the last block.
There is a single blank row in between these rows.
Lastrow = .Cells(.Rows.Count, "D").End(xlUp).Row
Startrow = .Cells(.Rows.Count, "D").End(xlUp).End(xlUp).Row
I have a s/sheet which has multiple blocks of Rows.
I used Lastrow to get the last row and the Startrow to get the last block of rows.
However, I am unable to select two other blocks above the last block.
There is a single blank row in between these rows.
Lastrow = .Cells(.Rows.Count, "D").End(xlUp).Row
Startrow = .Cells(.Rows.Count, "D").End(xlUp).End(xlUp).Row