I looked everywhere and cannot find a fitting solution.
In my source workbook I have a range in sheet "Basics" which contains several filenames.
For example Range A1:A25
But not every cell in this range will contain a filename. Some will be empty.
I need a macro that opens all the listed files in range A1:A25, then copies Range A1:K500 from sheet1 in these files and then pastes this data to my source workbook into several sheets.
The several sheets in my source workbook are named 1, 2, 3, 4, 5 etc.
So the macro should open the first file listed in range A1:A25 and copy the data from Range A1:K500 from sheet1 from this workbook to sheet "1" (Range A1:K500) in my sourceworkbook. Then open second file + same task and paste to sheet "2" in source workbook and so on..
Thank you and best regards, M