Results 1 to 5 of 5

Loop to copy the same rows from multiple files to a master file

Threaded View

  1. #5
    Registered User
    Join Date
    07-25-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Loop to copy the same rows from multiple files to a master file

    Thank you so much for this. It works well- I could never have written that myself!

    The only issue is that I would like to be able to get the code to loop through every Excel file in the folder (i.e. get the source file to change). However, when the code runs through these files, the information from each file needs to be copied to a common (master) sheet for each site (e.g. WM-01) (i.e. the sheet created during the first loop), rather than opening a new set of sheets for each file.

    For example, row 4 from both the attached files ('SWM_example1', 'SWM_example2') needs to be copied to the same 'WM-02' sheet (which was created by your fantastic code, shown in your example, 'SWM_example(bvj)'), rather than creating a new 'WM-02' sheet everytime the code loops.

    In my mind you are already a genius, but if you can help me with tweaking the code to do this, you will be STELLAR.

    Many thanks
    Attached Files Attached Files

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