• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Consolidate data from different files within a folder using Macro

Sai Prabhu

New Member
I need a macro to consolidate all the data from different Excel files that are present in a folder. All the columns in the files are assumed to be consistent within the same folder; however, the columns can change in different folders. The User should be able to select a folder and the data from all the files should be consolidated into a new singe Excel file (data is copied from a file and pasted one below another)
1. The User should be able to select only Folder Name (all the Excel files within the same folder should be consolidated).
2. Macro should consider all different Excel formats (.xls or .xlsx etc.)
3. The macro should check for data in all the sheets. If exists, copy and paste data below the existing data in the consolidated file.
4. Macro should copy header only from the first file/sheet and rest from row number 2.
 

Attachments

  • Consolidated file.xlsx
    13.3 KB · Views: 3
  • File1.xlsx
    10.4 KB · Views: 2
  • File2.xlsx
    15 KB · Views: 2
Back
Top