I can't figure out how to select the rows of a range. I want to do something equivalent to hitting Shift+Spacebar
I have used the following code to select a range (equivalent to using shift-Ctrl-down)
Range(Selection, Selection.End(xlDown)).Select
I now want to select the entire rows but keep the active cell in the same column (in this instance it turns out to be column F)
I tried to use the following
Range(Selection, Selection.End(xlDown)).EntireRow.Select
but the ?active? cell moves to column A. I want it to stay in the same column because in the next step, I'm going to use
ActiveCell.End(xlDown).Select
and I don't want to move to column A
I also tried
Range(Selection, Selection.End(xlDown)).Rows.Select
But this doesn't seem to select rows.
I have used the following code to select a range (equivalent to using shift-Ctrl-down)
Range(Selection, Selection.End(xlDown)).Select
I now want to select the entire rows but keep the active cell in the same column (in this instance it turns out to be column F)
I tried to use the following
Range(Selection, Selection.End(xlDown)).EntireRow.Select
but the ?active? cell moves to column A. I want it to stay in the same column because in the next step, I'm going to use
ActiveCell.End(xlDown).Select
and I don't want to move to column A
I also tried
Range(Selection, Selection.End(xlDown)).Rows.Select
But this doesn't seem to select rows.