MERGE EXCEL WORKBOOS SHEETWISE

YogeshShambharkar

New Member
Joined
Sep 2, 2021
Messages
20
Office Version
  1. 2013
Platform
  1. Windows
Hello masters,
I have multiple workbooks, each with same number and names of sheets. i would like to combine these workbooks by sheets. Data form first sheets of all workbook to be merged/consolidated/combined in to sheet 1, data from second sheets of all workbook to be merged/consolidated/combined in to sheet 2 and so on till the last sheets. doing this manually by coping and pasting data manually is very tedious and time consuming. Is there any way to do this easy way, may be there is a macro for this.
 
Yes. It has me set up a sample sheet. And it combines the selected sheet only. but if I have 10 sheets in every workbook then I have to repete the excercise 10 times.
You can copy the M code between the queries, and just change the source step.
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
@jolivanes sorry for quoting again.....

I am pretty new to VBA. I followed your instruction from 1st reply. Saved the code to workbook which will receive all the data. the workbook is saved in the same folder as other files which are to be merged. Sheets are in same order and have similar names in all the workbooks. Now pls guide me.
 
Upvote 0
"similar" does not do it. Exact same does.
 
Upvote 0
No leading and/or trailing spaces in names by accident?
 
Upvote 0
As I mentioned in Post #10, works like a charm here.
If you upload both workbooks into DropBox or similar free site, we can have a look.
If you go that route, make sure workbooks don't have any code in it that change settings ( comment out all workbook_change and similar code) and that, if you have them, sheets/books are free of protection.
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

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