VBA/Macro to combine all files in a folder into one worksheet

The Gent

Board Regular
Joined
Jul 23, 2019
Messages
50
Morning guys,

I need some help with some code to combine the data that I have in 40 files, all within one folder into one Excel worksheet.

I need from rows 8 to 508 in each file but it could just be row 8+ as there should be no blank rows.

There are two sheets in each file but I only need the first sheet, this is named "MasterData (2)".

I have tried a few codes but there seems to be no output.

Thanks.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
PowerPivot results in me losing some data which is causing me some issues.

Does anyone have a VBA suggestion?
 
Upvote 0
I did not suggest Power Pivot. I suggested Power Query. Big difference..
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,025
Members
448,543
Latest member
MartinLarkin

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