How to merge multiple workbooks into one workbook inserting a worksheet for each work book

ManiB

New Member
Joined
May 26, 2016
Messages
1
I have a folder with many excel files which only has one worksheet for example files names maybe called:

  • 1_A
  • 1_B
  • 2_A
  • 2_B
I would like to create new excel workbooks based on a list within excel sheet, which would then I put files 1_A and 1_B into one workbook with 2 the two sheet having the name of the file, for example:

  • New workbook called 1
  • it contains sheets 1_A and 1_B
  • New workbook called 2
  • it contains sheets 2_A and 2_B
in my list it would be possible for me to enter the path of where the files are, the name of the new workbooks and what sheet should go to the workbook.

Thank you for any help
 
Hi Mani
You need to
Create new Workbook
Loop´thru the File list
Open File
Copy Sheet to new File
Close File
Next File

Cheers
Segio
 
Upvote 0

Forum statistics

Threads
1,226,850
Messages
6,193,345
Members
453,790
Latest member
yassinosnoo1

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