Excel Macro to combine multiple Excel Workbooks

  Рет қаралды 26,455

Ajay Anand

Ajay Anand

5 жыл бұрын

This video is about a Macro to combine different worksheets from different Excel workbooks.
#CombineWorkSheet #CombineWorkbook #CombineExcelSheet

Пікірлер: 31
@hs5379
@hs5379 2 жыл бұрын
Thank you for wonderful video! But how we can process if we want collated file from specific sheet from all active workbook. Can you please assist?
@arnodewet13
@arnodewet13 3 жыл бұрын
Hi - What adjustment can be made if I want to transfer only specific sheets from various workbooks. Example I have 5 workbooks and I want to combine all sheets named "2" in those workbooks to one file. Thank you
@TheHellokittysakura
@TheHellokittysakura Жыл бұрын
Thank you for this! My code finally worked! 😭
@fishfoot123
@fishfoot123 2 жыл бұрын
Hi Anand sir, When the macro is completed the macro updating shee1 2, 3 and so on. How it can be made as file names as sheet name. The same question some one had asked long back, the reason is, in the video the file name has been updated in the sheet name. When we perform the same process the sheet name is not updating. Please help us to correct it.
@sat1460
@sat1460 5 жыл бұрын
Thanks again
@AjayAnandXLnCAD
@AjayAnandXLnCAD 5 жыл бұрын
My pleasure and thank you for letting me know
@gurumoorthy2275
@gurumoorthy2275 4 жыл бұрын
Thank you
@AjayAnandXLnCAD
@AjayAnandXLnCAD 4 жыл бұрын
You're welcome
@surajrajeniya9703
@surajrajeniya9703 2 жыл бұрын
Nice
@faisalshaikh7501
@faisalshaikh7501 3 жыл бұрын
Very informative and clearly explained. Thank you very much..🙂 How can we consolidate that entire data into single sheet ?
@AjayAnandXLnCAD
@AjayAnandXLnCAD 3 жыл бұрын
Better to use Power Query for this task. I have done a video on this topic.
@amitkanji
@amitkanji 2 жыл бұрын
How to arrange the sheets in consolidated sheet the way we want?
@chillpill7348
@chillpill7348 2 жыл бұрын
What if I dont want it to appear in multiple sheets? I need a data in 1 sheet combined from all sheets, this isnt useful then.
@amitmachhi2339
@amitmachhi2339 3 жыл бұрын
Hi Ajay, Thanks for the video its useful. Could you please tell - How we can change the name of all copied sheets as the name of file or workbook name i.e. "Sheet (1)" "Sheet(2)" etc. to Co. A, Co. B .....
@AjayAnandXLnCAD
@AjayAnandXLnCAD 3 жыл бұрын
I have done a few videos on Adding/Naming worksheets. Please go through the videos section of this channel to find them.
@Neale91
@Neale91 4 жыл бұрын
Hi Ajay Anand. Thanks for this upload. I am just starting out with VBA and this macro is beyond anything I could have done myself. However, I noticed in the line "Sheet.Copy After:=ThisWorkbook.Sheets(1)", this adds each sheet after the first, and so the sheet order is reversed. To maintain the order of sheets, I have altered the above code to: "Sheet.Copy After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)".
@santoshm78
@santoshm78 3 жыл бұрын
Nice sir
@AjayAnandXLnCAD
@AjayAnandXLnCAD 3 жыл бұрын
Thanks and welcome
@vipulborule5532
@vipulborule5532 3 жыл бұрын
Hi . I want all the data to copy in one sheet it self. For instance: i have 10 workbook and each workbook has data in two sheets. So macro should copy the sheet 1 and past in sheet 1 and the data which is in sheet 2 should copy past in sheet 2. This has to been done for all the 10 work books. Request you to respond. Thanks in advance
@AjayAnandXLnCAD
@AjayAnandXLnCAD 3 жыл бұрын
I suggest Power Query for this task. Please refer to my articles on this topic.
@10morrisonka
@10morrisonka 5 жыл бұрын
Hello, hello ! Who is the CHAMP again !!😊😊😊😘😘😘
@AjayAnandXLnCAD
@AjayAnandXLnCAD 5 жыл бұрын
Like always, You ☺️
@10morrisonka
@10morrisonka 5 жыл бұрын
@@AjayAnandXLnCAD That is so transferable ! You transferred championsity:-) from you to me !! Thank you, Ay !!💖💖💖
@stefanescuh
@stefanescuh 4 жыл бұрын
Your video it is good, but very fast to watch! Please explain slowly! Thanks a lot for your ideas!
@AjayAnandXLnCAD
@AjayAnandXLnCAD 4 жыл бұрын
Thank you for the suggestion. Will make necessary improvements in the videos to come.
@dayp79
@dayp79 3 жыл бұрын
If you hit the 'gear' next to the closed caption symbol on the video you can slow the playback speed,
@dineshmuthiah2127
@dineshmuthiah2127 3 жыл бұрын
If you give the code on description it will use to us
@AjayAnandXLnCAD
@AjayAnandXLnCAD 3 жыл бұрын
Please visit my website for the VBA code shown here.
@nithiyasrinivasan3309
@nithiyasrinivasan3309 3 жыл бұрын
I have done everything and no error showing.. stil it's not working
@AjayAnandXLnCAD
@AjayAnandXLnCAD 3 жыл бұрын
Can you please share the code here?
@SuperAjeeth
@SuperAjeeth Жыл бұрын
Somehow its not working for me here is code which I copied Error is - Can't Execute Code In Break Mode , What Mistake I made here Sub CombineWorkBooks2() Dim FName As String, FPath As String Dim Sheet As Worksheet Dim FDialog As FileDialog Set FDialog = Application.FileDialog(msoFileDialogFilePicker) If FDialog.Show = -1 Then Worksheets("Combine Sheets").Cells(2, 2).Value = FDialog.SelectedItems(1) End If Application.ScreenUpdating = False FPath = Worksheets("Combine Sheets").Cells(2, 2).Value FName = Dir(FPath & "\*.xls*") Do While Name "" Workbooks.Open Filename:=FPath & "\" & Name, ReadOnly:=True For Each Sheet In ActiveWorkbook.Sheets Sheet.Copy After:=ThisWorkbook.Sheets(1) Next Sheet Workbooks(FName).Close FName = Dir() Loop Application.ScreenUpdating = True End Sub
How to Merge Excel Files (Without Using VBA) - 4 Easy Ways
9:04
Excel University
Рет қаралды 198 М.
How to Combine Multiple Excel Files using VBA
19:06
Excel Macro Mastery
Рет қаралды 32 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 12 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 181 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 35 МЛН
Excel VBA Combine Multiple Workbooks Into One
11:11
The Excel Cave
Рет қаралды 16 М.
Combine Data from Multiple Sheets in a Single Sheet
6:51
Goodly
Рет қаралды 282 М.
VBA Macro to Copy Data from Another Workbook in Excel
13:39
Excel Campus - Jon
Рет қаралды 635 М.
How to Add Calendar to an Excel cell
6:26
Ajay Anand
Рет қаралды 192 М.
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 12 МЛН