I have a folder which contains a few excel files.
In each of those files I want to create an array which will contain the data in the "data" sheet. Each workbook or file has this worksheet.
Only problem is there could be a different number of files in the folder each time.
I want to capture the contents of the "data" worksheet of each file in an array each and then write all this data to one single file.
Question Is it possible to dynamically create arrays based on for example the number of files in a folder?
If so how do you create those dynamic arrays?
Example Instead of having one array (which I change the size of) I want to ... (depending on the number of files in a folder for example create that many separate arrays?
e.g. 3 files in an folder
dim array01 dim array02 dim array03
Is it better to create one array per workbook in the folder - to store the contents of the "data" worksheet, or create one larger array?