Macro to Merge many files to one

khalidness

New Member
Joined
Nov 6, 2014
Messages
12
Macro to Merge many files to one

I have excel files in a folder, All files have same no of columns,
I need a macro that copies the data from all files in New file and save new file in different location.

My data in File 1 :

A1 = 1XYZ, B1 = 1ABC C1 = 1BHY
A2 = 1BHU, B2 = 1ABD C2 = 1BNJ

My data in File 2 :

A1 = 2XYZ, B1 = 2ABC C1 = 2BHY
A2 = 2BHU, B2 = 2ABD C2 = 2BNJ


Expected Output :

A1 = 1XYZ, B1 = 1ABC C1 = 1BHY
A2 = 1BHU, B2 = 1ABD C2 = 1BNJ
A3 = 2XYZ, B3 = 2ABC C3 = 2BHY
A4 = 2BHU, B4 = 2ABD C4 = 2BNJ
Kindly do the needful.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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