How would I access a range that corresponds to an entire column starting at row 2 (there is a header row)? The end of the selection should be the last non-empty cell in the column.

link|improve this question

50% accept rate
feedback

3 Answers

How to select cells/ranges by using Visual Basic procedures in Excel

see # 19 (How to Select an Entire Range of Contiguous Cells in a Column)

link|improve this answer
That selects over a million rows in the workbook i'm using even though everything beyond 300 or so are blank. – Dave Sep 16 '09 at 20:53
how about: Sub LastCellBeforeBlankInColumn() / Range("A1").End(xldown).Select / End Sub – Molly7244 Sep 16 '09 at 21:17
btw, plenty of cool excel stuff here: ozgrid.com/free-excel.htm – Molly7244 Sep 16 '09 at 21:33
feedback

Hi Dave you can use the excel key board short cuts...

Try this ....

Press ctrl+Home.

this would take you to the cell A1 ( if you have not used the freeze pane)

come 1 cell down and then use "CTRL+SHIFT+DOWN arrow button to select till the last entered row"

if you have to select the column value use the right arrow button instead of the down arrow button.

link|improve this answer
feedback

Try this:

Range(Range("A2"),Range("A2").End(xldown)).Select

or this:

Range(Range(Cells(2, 1), Cells(2, 1)), Range(Cells(65535, 1), Cells(65535, 1)).End(xlUp)).Select
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.