Hi All,
I would like to resize all the named ranges on a worksheet, where I have about 30 columns next to each other, so the LastRow of them is the same.
This is actually a table, where sometimes a new row will be filled in completely.
That is why I need to enlarge all the named ranges (all names belong to 1-1 column) by 1 row, practically with the "new" LastRow of the table.
The first row of all ranges is always the row nr. 5.
Example:
MyRng_A = "$A$5:$A$" & LastRow
MyRng_B = "$B$5:$B$" & LastRow
MyRng_C = "$C$5:$C$" & LastRow
These examples are simple, but my range names are longer and more difficult, that is why I search for a smarter solution.
So, do I have to type all those commands into the code, or is there an option like "For Each" or so?
I do not know how to do this.
Could anyone please help me?
Thank you very much for your help!
Cheers,
Zs
I would like to resize all the named ranges on a worksheet, where I have about 30 columns next to each other, so the LastRow of them is the same.
This is actually a table, where sometimes a new row will be filled in completely.
That is why I need to enlarge all the named ranges (all names belong to 1-1 column) by 1 row, practically with the "new" LastRow of the table.
The first row of all ranges is always the row nr. 5.
Example:
MyRng_A = "$A$5:$A$" & LastRow
MyRng_B = "$B$5:$B$" & LastRow
MyRng_C = "$C$5:$C$" & LastRow
These examples are simple, but my range names are longer and more difficult, that is why I search for a smarter solution.
So, do I have to type all those commands into the code, or is there an option like "For Each" or so?
I do not know how to do this.
Could anyone please help me?
Thank you very much for your help!
Cheers,
Zs