Hi!
I'm trying to select the active cell and all the non-empty cells below it. Can anyone tell me why this doesn't work:
Sub Selecting()
Dim Lastrow As Integer
Lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
ActiveCell.Resize(Lastrow, 2).Select
End Sub
Thanks!
I'm trying to select the active cell and all the non-empty cells below it. Can anyone tell me why this doesn't work:
Sub Selecting()
Dim Lastrow As Integer
Lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
ActiveCell.Resize(Lastrow, 2).Select
End Sub
Thanks!