This video is about a Macro to combine different worksheets from different Excel workbooks. #CombineWorkSheet #CombineWorkbook #CombineExcelSheet
Пікірлер: 31
@hs53792 жыл бұрын
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?
@arnodewet133 жыл бұрын
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 Жыл бұрын
Thank you for this! My code finally worked! 😭
@fishfoot1232 жыл бұрын
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.
@sat14605 жыл бұрын
Thanks again
@AjayAnandXLnCAD5 жыл бұрын
My pleasure and thank you for letting me know
@gurumoorthy22754 жыл бұрын
Thank you
@AjayAnandXLnCAD4 жыл бұрын
You're welcome
@surajrajeniya97032 жыл бұрын
Nice
@faisalshaikh75013 жыл бұрын
Very informative and clearly explained. Thank you very much..🙂 How can we consolidate that entire data into single sheet ?
@AjayAnandXLnCAD3 жыл бұрын
Better to use Power Query for this task. I have done a video on this topic.
@amitkanji2 жыл бұрын
How to arrange the sheets in consolidated sheet the way we want?
@chillpill73482 жыл бұрын
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.
@amitmachhi23393 жыл бұрын
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 .....
@AjayAnandXLnCAD3 жыл бұрын
I have done a few videos on Adding/Naming worksheets. Please go through the videos section of this channel to find them.
@Neale914 жыл бұрын
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)".
@santoshm783 жыл бұрын
Nice sir
@AjayAnandXLnCAD3 жыл бұрын
Thanks and welcome
@vipulborule55323 жыл бұрын
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
@AjayAnandXLnCAD3 жыл бұрын
I suggest Power Query for this task. Please refer to my articles on this topic.
@10morrisonka5 жыл бұрын
Hello, hello ! Who is the CHAMP again !!😊😊😊😘😘😘
@AjayAnandXLnCAD5 жыл бұрын
Like always, You ☺️
@10morrisonka5 жыл бұрын
@@AjayAnandXLnCAD That is so transferable ! You transferred championsity:-) from you to me !! Thank you, Ay !!💖💖💖
@stefanescuh4 жыл бұрын
Your video it is good, but very fast to watch! Please explain slowly! Thanks a lot for your ideas!
@AjayAnandXLnCAD4 жыл бұрын
Thank you for the suggestion. Will make necessary improvements in the videos to come.
@dayp793 жыл бұрын
If you hit the 'gear' next to the closed caption symbol on the video you can slow the playback speed,
@dineshmuthiah21273 жыл бұрын
If you give the code on description it will use to us
@AjayAnandXLnCAD3 жыл бұрын
Please visit my website for the VBA code shown here.
@nithiyasrinivasan33093 жыл бұрын
I have done everything and no error showing.. stil it's not working
@AjayAnandXLnCAD3 жыл бұрын
Can you please share the code here?
@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