I'm currently trying to figure out how to select a range from the second row to the last row, but more specifically between the range of columns. For example, I want to select Range ( A2:L2 ) for the last row of data in a spreadsheet.
I tried,
Dim Lastrow As Integer Lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row Range("A2:L2" & Lastrow).Select
But this is selected from A2:L2 all the way to the bottom of the spreadsheet. I checked if Lastrow was wrong, but I typed it in a cell and the correct number of rows was displayed.
source share