+ Reply to Thread
Results 1 to 3 of 3

Loop to open all workbooks in folder and append data to single sheet

  1. #1
    Registered User
    Join Date
    05-10-2011
    Location
    Miami
    MS-Off Ver
    Excel 2007
    Posts
    28

    Loop to open all workbooks in folder and append data to single sheet

    Considering all the complex tasks I have learned on this site, I am a little embarrassed I can't figure this one out. As stated in title, I have a folder full of workbooks that I need to simply open, copy data, paste to the main workbook, and move on to the next workbook. I can handle all the cutting and pasting commands fine, but the looping has me stymied.

    I have tried a few approaches like trying to use the
    Please Login or Register  to view this content.
    and stealing from past loop codes that I have written that actually worked
    Please Login or Register  to view this content.
    but I can't seem to figure out a way to do what sounds like such a simple task!

    Any help would be very much appreciated!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Loop to open all workbooks in folder and append data to single sheet

    Hi, beng404,

    maybe

    Please Login or Register  to view this content.
    I was guessing at the ranges to copy and where to paste them.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    05-10-2011
    Location
    Miami
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Loop to open all workbooks in folder and append data to single sheet

    That worked fantastically well! The size of what I want to copy can change, so I put in a large range and added a clean-up line to remove blank rows. Also, if the "update links" popup is bothering anyone, it can be disabled in excel's option menu.

    Please Login or Register  to view this content.
    Thank you for the quick help!

+ 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: 1
    Last Post: 07-02-2013, 03:42 AM
  2. VBA loop through all workbooks in folder copy data into new summary tab
    By Beany213 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2013, 06:03 AM
  3. Import data from several closed workbooks to a single sheet in an open workbook
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2013, 06:35 AM
  4. Open all workbooks in a folder and extract data
    By Cerkit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2013, 06:17 AM
  5. loop through workbooks in folder copy "jan" sheet into new workbook
    By Sirishgreen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2008, 06:00 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