+ Reply to Thread
Results 1 to 4 of 4

Run through list with file locations copy data back to main workbook

  1. #1
    Registered User
    Join Date
    07-26-2020
    Location
    Darwin, Australia
    MS-Off Ver
    365
    Posts
    9

    Run through list with file locations copy data back to main workbook

    Hi all,

    Been a long time reader - I've found many solutions here, but haven't been able to find one for my current dilemma.

    I have a table with the full path and file name of all the files I manage (using power query). In each file there is a sheet called "COMPLIANCE". I need a code to run through the column, open each file and copy the information from the COMPLIANCE sheet and paste it back in my original workbook.

    I had luck with this code I found online (probably here to be honest) - but can only do one file at a time. I really need to be able to run through the complete list of files without having to select. I've attached an example of what the workbook looks like

    Any Ideas?


    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-10-2012
    Location
    Paris, France
    MS-Off Ver
    2016/365
    Posts
    123

    Re: Run through list with file locations copy data back to main workbook

    Hi Jatki19

    Try this
    Please Login or Register  to view this content.
    @+
    If you are satisfied with my answer, please add reputation

  3. #3
    Registered User
    Join Date
    07-26-2020
    Location
    Darwin, Australia
    MS-Off Ver
    365
    Posts
    9

    Re: Run through list with file locations copy data back to main workbook

    Works perfectly!

    Thank you so much for this. This will save me so much time - not to mention the time saved trying to figure out how to get this working!

  4. #4
    Registered User
    Join Date
    07-26-2020
    Location
    Darwin, Australia
    MS-Off Ver
    365
    Posts
    9

    Re: Run through list with file locations copy data back to main workbook

    I've been trying to only copy specific rows with this code - with no luck. I may have lost hair over it. I tried filtering the data - but the workbook is locked and i was getting pretty inconsistent results.

    Is there a way for each workbook that opens to find a specific date in column B and copy those rows only? I've attached an example of the Compliance sheet.
    Attached Files Attached Files

+ 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. Search multiple headings in other sheet, copy data and paste in main file
    By Zahid0111 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2020, 10:09 AM
  2. Copy data from workbook in to Chrome (and back!)
    By excelerators in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2017, 05:59 PM
  3. Replies: 1
    Last Post: 12-09-2015, 06:20 PM
  4. Automatically Copy Data from Workbook - Main Workbook
    By BigBobBobson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2015, 06:59 AM
  5. [SOLVED] VBA to copy data from one workbook to another main workbook
    By hate0lif3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2014, 02:52 AM
  6. [SOLVED] How take form based data entry back to main sub?
    By Chet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2006, 04:45 PM
  7. Replies: 1
    Last Post: 04-01-2006, 03:50 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