Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Wed, 4 Mar 2009 12:54:52 -0500, "Rick Rothstein"
wrote: I see from your posting that I misinterpreted what the OP was looking for. As you may remember from other postings of mine, I have this "thing" for one-liners; so, while not a practical solution to the OP's question (I would do it the way you posted), I thought those reading this thread might find this one-liner of interest anyway... Range("A3:" & Split(Range("A1").CurrentRegion.Address, ":")(1)).Select It selects the same range your code would (if you had specified Select instead of Address on your last line of code). HOWEVER, the code requires that at least one line of data exists (or else the 2nd header row would be selected). What I noted about your previous posting was that it only moved the current region down two rows, but didn't resize it. You can combine my two lines into one (obviously excluding the debug.print lines), but I chose not too to make it easier for the OP to follow the logic. --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error with Selection.CurrentRegion.Rows.Count? | Excel Programming | |||
Incorrect CurrentRegion.SpecialCells(xlVisible).Rows.Count on filt | Excel Programming | |||
Can't get to bottom right corner of window to resize? I figured it | Excel Discussion (Misc queries) | |||
How to select the bottom right cel in a 'CurrentRegion.selecion' | Excel Programming | |||
Selecting multiple rows within a CurrentRegion | Excel Programming |