Storing data from array for later use

PeterBunde

New Member
Joined
Dec 7, 2016
Messages
45
Fellow sufferers

My Excelsheet retrieves a lot of data into arrays. They stay in memory. Then a certain event (selecting a particular cell) is used to generate and display a graph (stacked bar).

The problem now is: when the file is saved, then reopened, the arrays are no longer there.
What is the best strategy to store the arrays so that they are available also after the sheet is re-opened?

BW Peter Bunde Hansen
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Call the routine which loads the arrays from the Workbook_Open event, like this:

Code:
Private Sub Workbook_Open()
    Load_Arrays
End Sub
that code goes in the ThisWorkbook module.
 
Upvote 0
Call the routine which loads the arrays from the Workbook_Open event, like this:

Code:
Private Sub Workbook_Open()
    Load_Arrays
End Sub
that code goes in the ThisWorkbook module.

Hi John

Thanks for reply.

My challenge is actually to write that rutine. How to store and how to retrieve the arrays?

BW Peter Bunde Hansen
 
Upvote 0
Please take a minute to read the forum rules, especially relating to cross-posting, and then comply with them. Thanks.
 
Upvote 0
Please take a minute to read the forum rules, especially relating to cross-posting, and then comply with them. Thanks.

I actually did and will comply henceforth. Could someone pls answer my actual question? If you get an answer, then cross-posting no longer is needed ;)
 
Upvote 0
Not until you comply with the rules, please, on both this thread and your other one.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top