DutchKevin
Board Regular
- Joined
- Apr 13, 2011
- Messages
- 133
- Office Version
- 365
- Platform
- Windows
Dear All,
I would like to use VBA to create named ranges from an extensive table, but i dont know how to write this specific code.
The names to be used as the name for the named ranges are in row6, starting at column B onwards to the right.
The data that should be in the range is varying in lenght. It is positioned in the column below the proposed name.
Some ranges will only be 3 cells long/high, others can be as long as 12 or 15 cells
How would a VBA code look like that scans this data and creates the named ranges accordingly? The named ranges should be available in the whole workbook.
Is it possible to also use such code to apply changes to the ranges? So if a column gets longer or shorter as the amount of cells in a range changes, the code can be run to reflect that in the named ranges?
Thansk for looking at this
Best Regards
I would like to use VBA to create named ranges from an extensive table, but i dont know how to write this specific code.
The names to be used as the name for the named ranges are in row6, starting at column B onwards to the right.
The data that should be in the range is varying in lenght. It is positioned in the column below the proposed name.
Some ranges will only be 3 cells long/high, others can be as long as 12 or 15 cells
How would a VBA code look like that scans this data and creates the named ranges accordingly? The named ranges should be available in the whole workbook.
Is it possible to also use such code to apply changes to the ranges? So if a column gets longer or shorter as the amount of cells in a range changes, the code can be run to reflect that in the named ranges?
Thansk for looking at this
Best Regards