I have a working file which contains 10 sheets (sheet names represent companies). There is a summary sheet containing pivots of the companies’ data. Each pivot uses name manager for source data because this way Refresh can work even if the number of rows vary from one month to the other (number and order of columns is always the same). There is a folder in which there are 10 files containing raw data and the range I need is always on the first sheet. File names include the name of the relevant company. What I would like is to create a macro which can open each file from the folder and copy range A:AF & last row and paste it to the sheet with the same company name.
I know how to do this with one file but I don’t know how to “tell” vba to open seversl files and recognize to which sheet in the working file it should copy the data from the raw data file.
For the sake of simplicity let’s call the companies: A, B, C, …, J. Let’s call raw data files: Company A, Company B, etc. And let’s call the sheets in the working file: A, B, C, etc.
Could someone help me please?
I know how to do this with one file but I don’t know how to “tell” vba to open seversl files and recognize to which sheet in the working file it should copy the data from the raw data file.
For the sake of simplicity let’s call the companies: A, B, C, …, J. Let’s call raw data files: Company A, Company B, etc. And let’s call the sheets in the working file: A, B, C, etc.
Could someone help me please?