+ Reply to Thread
Results 1 to 3 of 3

Copy rows from diferents books using macros

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    lima, Peru
    MS-Off Ver
    Excel 2010
    Posts
    1

    Copy rows from diferents books using macros

    Hello friends: I would like your help in the following. I have a directory with several books and each book has a different number of worksheets. Manually created a book called Maestro with a single worksheet and wanted to create a macro that opens the diferents books in directory and open eachone of the worksheets of these books by copying all the rows with data. The copy should start in row 5 of the worksheets and continue as long as there is data. Control whether data is in column A. For example if a100 (a500 or A800 can be) no data, skip to the next sheet or book. All sheets have the same structure. In the end, Maestro would have all the rows of books that are in that directory. I hope letting me explain and appreciate your time and patience. my english isnt'n good. Regards

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

    Re: Copy rows from diferents books using macros

    'WORKBOOKS TO 1 SHEET STACKED
    Here's a macro for collecting data from all files in a specific folder.
    The parts of the code that need to be edited are colored to draw your attention.


    ===============
    Based on the code on that page including the option shown below it for cycling through multiple sheets, something like this:
    Please Login or Register  to view this content.
    _________________
    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!)

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

    Re: Copy rows from diferents books using macros

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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