It's not entirely clear what you want to do, but ...
If you need a collection, why not use a VBA collection object?
Dim myRanges as New Collection
A Collection.Item can be any object, including Range.
The Range object does not contain data ; it contains a link to the cells in the worksheet. If you want the contents of a range in your collection, you will have to copy them to a worksheet.
As in Java, your VBA variables are ephemeral, whether in an array or in a collection. If you want to close the file and have data there, when you open it again, you must have it in the cells of the worksheet. Worksheets are your save mechanism.
I'm going to make a big jump here, so if I leave, ignore me. I think you are looking for a proposal to create a separate sheet as your "database" populated with List / Table objects with your raw data. Before that, this is your “user sheet”, where you make interesting material, referring to the data in the database sheet. Name it all.
Marc thibault
source share