+ Reply to Thread
Results 1 to 4 of 4

Merging Data from Multiple Workbooks into 1 Workbook (Inc Subfolders)

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Merging Data from Multiple Workbooks into 1 Workbook (Inc Subfolders)

    Hi.

    Wondering if anyone can help?

    I am currently using the following code but I want to make it work on workbooks within subfolders as well:

    Please Login or Register  to view this content.
    So would work in for example

    C:\Estimate Collation\Person1
    C:\Estimate Collation\Person2
    C:\Estimate Collation\Person3
    C:\Estimate Collation\Person4

    As well as just the folder C:\Estimate Collation

    Is this possible?
    Last edited by JBeaucaire; 11-01-2012 at 01:13 PM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Merging Data from Multiple Workbooks into 1 Workbook (Inc Subfolders)

    http://www.rondebruin.nl/copy3.htm
    If solved remember to mark Thread as solved

  3. #3
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Merging Data from Multiple Workbooks into 1 Workbook (Inc Subfolders)

    We can take that main macro and turn it into a subroutine that is called by another macro. We feed in the folders to the macro and work our way deeper and deeper until all folders are processed.

    Then we create a main macro to set things in motion... create a blank workbook and feed in the main folder name. That is fed to a "loop" macro that first processes that main folder, then starts detecting folders and restarting the "loop" again in each folder, deeper and deeper until all are processed.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 05-29-2013 at 02:24 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    10-10-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Merging Data from Multiple Workbooks into 1 Workbook (Inc Subfolders)

    Thanks! Worked a Treat!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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