+ Reply to Thread
Results 1 to 2 of 2

Loop Macro that copys from various files until blank cell

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    bristol, england
    MS-Off Ver
    Excel 2010
    Posts
    26

    Loop Macro that copys from various files until blank cell

    I am still new to VBA code and am hoping someone out there can help me.

    I need a macro that can loop through files(various names) in a single folder, copy data from worksheet (calculations) to origin workbook sheet (Workings), stop copying range when it reaches a blank cell, close files.

    Basically each file has a range of data that is dynamic and could be different sizes. I need to copy that data into the workings tab but NOT the blanks.

    I have been working on a bit of code but it doesnt work and keeps giving me a Out of Memory error.

    Please Login or Register  to view this content.
    Thanks to anyone who can help.
    Happy to abandon my poor attempt at code if anyone can do better.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Loop Macro that copys from various files until blank cell


    Hi !

    The issue may be the code workbook saved as .xlsm in same folder than source workbooks .xlsm !
    Move code workbook to another directory or if it needs to stay in place save it as a binary workbook .xlsb
    then delete original .xlsm one. And separator directory is "\" …

+ 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. How To Loop a copy range macro until lookup cell is blank/empty
    By iggypop in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-02-2017, 09:44 AM
  2. [SOLVED] Macro that copys full row on to new worksheet if a cell contains a certain text
    By batjl9 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-28-2017, 11:07 AM
  3. Loop Across Columns...If Blank Cell, Loop Down Rows
    By flindy87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2014, 07:05 PM
  4. Loop Across Columns If Blank Cell Loop Down Rows
    By flindy87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 10:22 AM
  5. [SOLVED] Macro that copys the last row on two worksheets
    By neofrey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2012, 01:23 PM
  6. B1 = B12 ....how can I remove part of what is copys to the new cell?
    By simpleonline1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2010, 07:23 AM
  7. [SOLVED] Loop that Copys from one sheet and pastes to another
    By JI in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2006, 01:40 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