Hello all.
I have let's say 3 files with one sheet each, all sheets have the same name as the workbook names which contains them (they are generated automatically by another program each month and saved into one folder).
Example: In the folder we have files SA_SE.XLS, SA_US.XLS and SA_DE.XLS with sheet names SA_SE, SA_US and SA_DE.
I want the code to copy those 3 sheets into one workbook (let's name it Overview.xls).
The number of files vary from one month to another and in this case I need the Overview.xls to always be emptied from the old sheets, before the code copies the new sheets into it.
How do I loop through the folder containing the workbooks, and then copy each worksheet from the them into the Overview workbook ?
All help appreciated.
I have let's say 3 files with one sheet each, all sheets have the same name as the workbook names which contains them (they are generated automatically by another program each month and saved into one folder).
Example: In the folder we have files SA_SE.XLS, SA_US.XLS and SA_DE.XLS with sheet names SA_SE, SA_US and SA_DE.
I want the code to copy those 3 sheets into one workbook (let's name it Overview.xls).
The number of files vary from one month to another and in this case I need the Overview.xls to always be emptied from the old sheets, before the code copies the new sheets into it.
How do I loop through the folder containing the workbooks, and then copy each worksheet from the them into the Overview workbook ?
All help appreciated.