VBA to Merge Sheet1 of Multiple Workbooks in Same Folder

kendalldev

New Member
Joined
Nov 27, 2017
Messages
1
I see a variety of code for what I am looking to do. Ron de bruin's code is almost exactly what I need, but need help with part of it as the row range must be dynamic.

I have 20+ workbooks with different names in one folder. I need to stack the data from each workbook into one worksheet in a master file. Ideally, headers would only appear once.

- Columns remain the same but row count is different in all files
- First two columns contain merged data, so an unmerge and copy/fill function may be necessary.

Hopefully that's enough info. Thanks in advance.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I see a variety of code for what I am looking to do. Ron de bruin's code is almost exactly what I need, but need help with part of it as the row range must be dynamic.

I have 20+ workbooks with different names in one folder. I need to stack the data from each workbook into one worksheet in a master file. Ideally, headers would only appear once.

- Columns remain the same but row count is different in all files
- First two columns contain merged data, so an unmerge and copy/fill function may be necessary.

Hopefully that's enough info. Thanks in advance.
Can you post your file or link to file?
 
Upvote 0

Forum statistics

Threads
1,215,632
Messages
6,125,908
Members
449,273
Latest member
mrcsbenson

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