+ Reply to Thread
Results 1 to 8 of 8

Update data from multiple files in multiple folders into one excel file

  1. #1
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    442

    Update data from multiple files in multiple folders into one excel file

    Hi everybody.
    Can someone demo code update data from multiple files in multiple folders into one workbook (Multiple sheets).
    Each sheet updates a folder.
    Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Update data from multiple files in multiple folders into one excel file

    You dont (necessarily) need code for this. You could just use regular formulas to link the Source files to the Destination file, in exactly the same way you would link worksheets to a summary worksheet in the same file.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: Update data from multiple files in multiple folders into one excel file

    maybe something like these:

    example

    Please Login or Register  to view this content.
    adjust to suit the files and sheets

  4. #4
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    442

    Re: Update data from multiple files in multiple folders into one excel file

    Thanks everyone.
    But not exactly what I mean.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Update data from multiple files in multiple folders into one excel file

    Quote Originally Posted by tax112 View Post
    ...
    But not exactly what I mean.
    what does that mean?
    wrong answer?
    no answer?
    something else?

  6. #6
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    442

    Re: Update data from multiple files in multiple folders into one excel file

    I have many Folders, each folder contains 300 *.text files.
    Now I want to update those 300 files for each Sheet.
    I already know how to update each Folder data for each Sheet.
    But I don't know how to update multiple Folders for many Sheets at the same time.
    Can anyone help me write a loop like this:
    For i=Folder1 to Folder n
    ......
    Next i

    Thank you.

  7. #7
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: Update data from multiple files in multiple folders into one excel file

    use a variable to change the folder name (I'm assuming the folders are inside a main folder)

  8. #8
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    442

    Re: Update data from multiple files in multiple folders into one excel file

    @k1dr0ck
    Thank you for your reply.
    Please help me.
    Thank you.

+ 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. Update data from multiple folders into an excel spreadsheet
    By minhanh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2021, 09:03 AM
  2. Code to copy data from multiple files under multiple folders
    By bavarunbansal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2020, 10:38 AM
  3. Use Excel VBA to Copy multiple files to Multiple folders
    By sinyitwong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2020, 01:04 AM
  4. Consolidation of data from multiple files & folders to one single summary file
    By Ignesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2019, 04:03 PM
  5. VBA code to move multiple files to different folders based on the file name
    By MissaLissa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2015, 10:19 AM
  6. Use Excel VBA to Copy multiple files from different source folders to different folders
    By mm1234mail in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2014, 01:17 PM
  7. Replies: 0
    Last Post: 01-11-2013, 12:05 AM

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