Hi All
Looking for a macro to copy Columns from the Source files mentioned and paste as is them into the Target file without opening both files, as this code will be saved in a template file separately
We would be receiving files from 5 different persons in xls or xlsb. formats, where the data is not stored in a table format, Hence cannot use the power query so felt to go with Macros. I cannot post the excel file here but explain the requirements in detail. Let me know in case if you have any further questions
I would be keeping a sheet named path, where I will be mentioning the path of all 5 files and ranges as below.
Looking for a macro to copy Columns from the Source files mentioned and paste as is them into the Target file without opening both files, as this code will be saved in a template file separately
We would be receiving files from 5 different persons in xls or xlsb. formats, where the data is not stored in a table format, Hence cannot use the power query so felt to go with Macros. I cannot post the excel file here but explain the requirements in detail. Let me know in case if you have any further questions
I would be keeping a sheet named path, where I will be mentioning the path of all 5 files and ranges as below.
Source Filename | Path for Source file | Sheet name in Source file | Range to be copied from Source files | Path for Target file | Sheet name in Target file | Range to be pasted as is from Source files | No of columns |
Person 1 | C:\ Person1.xls | Column B- H | C:\ Target.xls | Column B- H | 7 | ||
Person 2 | C:\ Person2xls | Column B- I | C:\ Target.xls | Column K- R | 8 | ||
Person 3 | C:\ Person3.xls | Column B- H | C:\ Target.xls | Column U – AA | 7 | ||
Person 4 | C:\ Person4.xls | Column B- H | C:\ Target.xls | Column AD – AJ | 7 | ||
Person 5 | C:\ Person5.xls | Column B- H | C:\ Target.xls | Column AT-AZ | 7 |
Last edited: