Hello
I am looking for help with a VBA code that copies data from a master file to multiple workbooks and worksheets. I can only find a code that does the opposite i.e. copy data from multiple workbooks to a master file.
The Masterfile will contain 12 worksheets named p1, p2,…p12. Focusing on one worksheet, say p1, I would like the data in this worksheet to be copied to a workbook that is named p1_data.xlsx.
The workbook, p1_data.xlsx (where data is to be copied to) has 4 worksheets and I would like data to be copied to it from the Masterfile (p1 worksheet) in the following manner:
If it helps, all the workbooks will be saved in one folder and I have attached an image of the masterfile data for p1 (data to be copied to the p1_data.xlsx workbook).
Any help is much appreciated.
I am looking for help with a VBA code that copies data from a master file to multiple workbooks and worksheets. I can only find a code that does the opposite i.e. copy data from multiple workbooks to a master file.
The Masterfile will contain 12 worksheets named p1, p2,…p12. Focusing on one worksheet, say p1, I would like the data in this worksheet to be copied to a workbook that is named p1_data.xlsx.
The workbook, p1_data.xlsx (where data is to be copied to) has 4 worksheets and I would like data to be copied to it from the Masterfile (p1 worksheet) in the following manner:
- Copy cells A5:M6 (from the master file) to info tab
- Copy cells O5:R26 (from the master file) to projected returns worksheet/tab
- Copy cells T5: AB10 (from the master file) to returnlikelihood worksheet/tab
- Copy cells AD5: AI16 (from the master file) to assetallocation worksheet/tab
If it helps, all the workbooks will be saved in one folder and I have attached an image of the masterfile data for p1 (data to be copied to the p1_data.xlsx workbook).
Any help is much appreciated.