+ Reply to Thread
Results 1 to 5 of 5

Merging files, workbooks

  1. #1
    Registered User
    Join Date
    05-14-2015
    Location
    Rabat, Morocco
    MS-Off Ver
    Microsoft Office 2013
    Posts
    5

    Merging files, workbooks

    Hello all,

    I need to find a solution for this purpose :

    I have 3 Files, with the same columns' names and same structure, but different information.

    2 files have 2 sheets. 1 file has only one sheet.

    My Questions :

    1. How can I merge the 3 files into one, with an adding column precising me from witch file the information was taken ?
    2. Is there any other solution in this case : if i regroup the 3 files in one file (so 5 sheets in one file : 2 sheets from file 1, 2 others from file 2, 1 sheet from file 3), and then merging all the sheets in a new sheet of the same file ?

    Thank you so much.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Merging files, workbooks

    Hi Ayda welcome to the Forum !!!

    about your query , u mean to say sometime u will have multiple sheets in some files right and all the sheets to be add to consolidate file right & then after all the sheets in one sheet in same is it right..


    Just please confirm your data will start from 2nd row only ??

    if its so then I will be back in 15mins with the solution
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Merging files, workbooks

    Merging File_Macro 05MAY2015.xlsbHi Ayda

    as required, please find the attached macro file.

    Steps:
    1. Place the path in Setup Sheet where all the files are there which need to be merge (note: place only that files which need to merge in assign path)
    2. click on the button

    Note: make sure u data should start from 1st row (including header).

    Hope this will work for you

  4. #4
    Registered User
    Join Date
    05-14-2015
    Location
    Rabat, Morocco
    MS-Off Ver
    Microsoft Office 2013
    Posts
    5

    Re: Merging files, workbooks

    Hey Naveed,

    Thank you for your help, but your solution didn't work on my computer maybe I did something wrong, a mistake... but I found an excellent solution : DigBD ! And finally it works !

    Thank you Naveed for your patience and help with me.

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Merging files, workbooks

    if my solution help you and you got your solution please mark the thread as SOLVED and click on *Add Reputation to say Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merging two files together based on col common to both files
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2011, 01:06 PM
  2. Merging two workbooks
    By MLEEJANE in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-05-2009, 09:37 PM
  3. merging workbooks xls + csv
    By inviz_ in forum Excel General
    Replies: 0
    Last Post: 09-16-2008, 04:29 AM
  4. Merging 3 workbooks when they are not exactly the same
    By Karen Le in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2006, 08:25 PM
  5. [SOLVED] Merging Two (or more) Workbooks
    By Chaplain Doug in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-14-2005, 07:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1