Issue with Selection.End(xlDown)
Last answer on Jun 9, 2009 5:46:18 pm BST linda, on Jun 9, 2009 4:52:47 pm BSTHello,
I am working on a few macros and came across this problem. If I use the code below to select a range of cells and if my working rows only have one row, the command selects, in this example, C2 all the way down to the maximum ie. C9999999999. The code halts with an error when it is looping through an infinite (or very large) number of cells. I do not have problems when the data consists of more than one row. I only want to select everything in column C, starting in C2 that has data, not the blank cells below
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
For Each Cell In Selection
command
command
command
Next Cell
Configuration: Windows XP Internet Explorer 7.0
Hye there, i've searched something.. it can help you:
|

