Hi team,
I am having an Excel sheet having each data in a separate tab. I want to consolidate the data in different tabs, to generate a consolidated file.
Can anyone please help me to create a macro which consolidate excel files.
Hi team,
I am having an Excel sheet having each data in a separate tab. I want to consolidate the data in different tabs, to generate a consolidated file.
Can anyone please help me to create a macro which consolidate excel files.
Try this;
.![]()
Please Login or Register to view this content.
Last edited by Haluk; 08-01-2019 at 01:24 PM.
Hi Thank u. I will try. Do I need to create a button or how do I execute the code.
Hi can you please let me know how to execute the code.
Last edited by AliGW; 08-04-2019 at 01:22 AM. Reason: Please don't quote unnecessarily!
Team can anyone please help me out !!!
How do you want the result?
Hi I need the data which is the separate tab in the Excel sheet should be converted into a single Excel file.
Just copy full range form each worksheet including each header?
"Consolidate" is just too rough to explain.
I apologise. Header should be copied once and the remaining data in the tab should be copied into a single Excel file.
![]()
Please Login or Register to view this content.
Hi thanks. I apologise I am new to vb. Can u tell me how to execute this code. And also if I add any new columns in the sheet, should that need to be declared in the code.
1) Hit Alt + F11 to open VBE(Visual Basic Editor)
2) [Insert] - [Module]
3) Paste the code on to the right blank space and hit Alt + Q to get back to Excel
4) Hit Alt + F8 and select "test" then Run
Hi thanks I did try it. But after running I am not seeing the consolidated file.can u check where I am going wrong.
Last edited by AliGW; 08-04-2019 at 02:21 AM. Reason: Please don't quote unnecessarily!
The new FILE(workbook) should be saved in the same folder.
Just tried it works perfect buddy. Thanks a lot. I have one last doubt. If I have the same data in separate excel will the same code works to consolidate into a single file.
Currently the test file I have here is the data in a separate tab but now my question is if the same data is in a separate excel file does the same code works to consolidate
Simply NO.
It's a completely different question.
Oh ok. So do we need to write a code for that as well. I would need that also. If you could help me that would be great.
You need to open a new thread for your new question.
If your original question is solved, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Yea thanks jindon. I will open a new thread.
I really appreciate all your efforts to solve my query.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks