This seems like it should be easy, but I have not been able to figure out how to do it ….(Since they moved everything to Visual Basic, the help system seems so useless to help you figure out something like this. But that’s another story …)
I have a series of 10 named ranges, 5 on top of 5. Like this:
R1 R2 R3 R4 R5
R6 R7 R8 R9 R10
I want to use code to define a new range (“AllData”) that encompasses all 10 of the named ranges. I cannot use specific cell references, because the size of the named ranges changes each time I run the query that produces the data in the worksheet. The query that produces the worksheet gives (my pre-defined) names to each of the ranges. Effectively, I want to set a new named range (“AllData”) with upper left boundary equal to the first cell of range R1 and a lower right boundary equal to the last cell of the R10 range.
Any idea how I can do that?