For those times when I have many range names to create...perhaps in
several existing workbooks...I use this VBA code in my Personal.XLS workbook
(but you could put it in any workbook):
Copy/Paste the below code into a Genaral Module.
Here's an example of how I'd use it....
First, I create a 2-column list, comprising of:
-Name to be created
-Refers to expression (formatted as text)
Example:
G1: MyDynRangeName
H1: '=OFFSET($C$3,,,COUNTA($C:$C),3)
Select G1:H1
[ALT]+[F8]...a shortcut for <tools><macro><macros>
Select: CreateRangesFromList
Click [Run]
The code will create or rebuild the range names in the list.
In the above example, a dynamic range name is created that
refers to C3:D3 and down for the number of non-blank cells in Col_C.
Is that something you can work with?
Bookmarks