Sheet1 of workbook A, containes a column listing file names stored in a specific folder and two columns over the corresponding row contains a number. This number represents the number of times i need to copy and paste the data in the corresponding file onto sheet 2 of workbook A.
A B C
1 filexyz.xlsm 2
2 fileabc.xlsm 3
3 fileefg.xlsm 1
So in the example above i need to open the first file "filexyz.xlsm" copy the data then go to sheet2 of workbook A and paste the data twice (say into cell A1 and paste and then paste again below the lastrow). Then move to the next file name in the list except this data would get pasted in 3 times. And continue in this way until ive done all the files. I think this requires some sort of loop within a loop but i cant figure out how to put it all together. Thanks for your help.
A B C
1 filexyz.xlsm 2
2 fileabc.xlsm 3
3 fileefg.xlsm 1
So in the example above i need to open the first file "filexyz.xlsm" copy the data then go to sheet2 of workbook A and paste the data twice (say into cell A1 and paste and then paste again below the lastrow). Then move to the next file name in the list except this data would get pasted in 3 times. And continue in this way until ive done all the files. I think this requires some sort of loop within a loop but i cant figure out how to put it all together. Thanks for your help.