+ Reply to Thread
Results 1 to 6 of 6

Loop workbooks – collect data from each

  1. #1
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Loop workbooks – collect data from each

    Hi,
    I wonder if it is possible to loop through all the workbook files in a directory and save - one after another - the contents of the sheet1 tab from each of these workbooks (range A1:C10) in a single master file?
    Can you help me with this code please?
    Dava

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Loop workbooks – collect data from each

    From internet (with small modifications):

    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Loop workbooks – collect data from each

    Here's a thread on that

    https://www.excelforum.com/excel-pro...te-folder.html

  4. #4
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Loop workbooks – collect data from each

    fantastic - thnaks - let me try!

  5. #5
    Registered User
    Join Date
    11-09-2006
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    200

    Re: Loop workbooks – collect data from each

    for somereason thsi macro spkips some of the files - does nto copy the contents - what mitgh cause this? it copied like 20% of all data....I added a one second delay to the end of loop and still it does nto copy all

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Loop workbooks – collect data from each

    Quote Originally Posted by zealot View Post
    for somereason thsi macro spkips some of the files - does nto copy the contents - what mitgh cause this? it copied like 20% of all data....I added a one second delay to the end of loop and still it does nto copy all
    Who are you talking to?

    Show the code you are using as well.

+ 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. Replies: 2
    Last Post: 01-17-2019, 05:31 AM
  2. collect data from merged cells in multiple workbooks to ecel sheet
    By thamara007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2015, 11:17 AM
  3. collect data from merged cells in multiple workbooks to ecel sheet
    By thamara007 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 02-09-2015, 11:14 AM
  4. [SOLVED] Macro to reorganize and collect data from multiple workbooks
    By bobfor1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2012, 01:30 PM
  5. collect information from many workbooks using filters
    By valveless in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2008, 09:31 AM
  6. Macro - Collect data - Select folder and loop through all xls files
    By zmalach in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2008, 10:37 AM
  7. Macro - Collect data - Select folder and loop through all xls files
    By kostas in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-04-2008, 05:58 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