Need assistance with Marco

tinkerv102

New Member
Joined
Aug 14, 2018
Messages
8
I have 38 excel files that I am looking to compile into one on a weekly basis. The files are all with the same format and the first 9 rows are the header to the file. My goal is to essentially copy and paste all the data from the 32 files beginning at row 10 for each into one. I have attempted to record my macro to see if it could duplicate my functions but somewhere after the 5 or 6th copy and paste the files gives an error. Could anyone assist me in coding a consolidating macro for the process.

The files would all be consolidated into a report called " Consolidated PPA reports" and the files that I am looking to consolidate are within a sharepoint path (does it need to be a path housed on the desktop to function properly?)

Any help would be greatly appreciated.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi Annieexcel, I originally attempted to just record the macro itself and do the manual process and it was not working out when it came to the output. I then attempted a few different versions of consolidation macros I found online and those did not help much.
 
Upvote 0
I just think you might be more likely to get help if you post that code where things were going wrong around the 5th or 6th copy.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top