Mereg workbooks with similar names

Ads Patz

New Member
Joined
Jan 12, 2018
Messages
15
Hi All,

I have 2 workbooks with similar names in the same folder location. What i need to do is create a macro that merges the 2 workbooks together into one.

So for example in the file location there will be the following excel files

Adam Jones Dec 17
Adam Jones Dec 2017
Barbara Walter Dec 17
Barbara Walter 2017
Chris Peters Dec 17
Chris Peters Dec 2017

In the Dec 17 version of the excel files there are 2 worksheets
In the Dec 2017 version of the Excel files there is 1 worksheet

So i need the macro to merge the 2 files into one and then save. It doesn't matter if the worksheets are copied from the Dec 2017 to Dec 17 or vice versa. If the macro could also somehow delete the other version of the file that would be fantastic but that can be deleted manually so not worried about that

Any one that can help with this?

Thanks
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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