+ Reply to Thread
Results 1 to 3 of 3

Copy Newest Data From Multiple Locations with Multiple Workbooks to a Master Workbook

  1. #1
    Registered User
    Join Date
    01-21-2016
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    5

    Copy Newest Data From Multiple Locations with Multiple Workbooks to a Master Workbook

    Hi Everyone,

    I've been looking high and low to see if I could find something that works for what I need to do and so far no luck.

    I hope this makes sense. If it doesn't please let me know and I'll do my best to clarify.

    I need to copy multiple raw data workbooks (with only one worksheet each) into multiple worksheets to a single master workbook.
    For example:
    o File1.xls copied into MasterWorkbook.xls Sheet 1
    o File2.xls copied into MasterWorkbook.xls Sheet 2

    Raw data workbooks are saved in multiple directories with multiple .xls files with a common naming pattern based on the date. The newest workbook from each directory is the one that needs to be copied into the MasterWorkbook.xls to the sheet I designate.
    For example:
    o 01-01-2016.xls and 01-02-2016.xls are in the same folder. We want the newest data to be copied into Sheet 1. 01-02-2016.xls is the newest so this is the file that needs to be copied to MasterWorkbook.xls Sheet 1. Say I put another .xls file in that same directory named as 01-03-2016.xls. Since this workbook has an even newer date, I need this to be copied into the MasterWorkbook.xls Sheet 1 so that it replaces the older data from 01-02-2016.xls.
    All of the raw data workbooks contain the same format. I need to be able to copy the newest workbooks from other directories into different sheets in the MasterWorkbook.xls as well.

    Thanks in advance.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: Copy Newest Data From Multiple Locations with Multiple Workbooks to a Master Workbook

    Hi there,

    Can the worksheets in the Master workbook be named with the appropriate date (e.g. "01-02-2016") rather than "Sheet1", "Sheet2" etc.? This approach would make it easier to check whether or not a raw data file had already been copied to the Master workbook.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    01-21-2016
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    5

    Re: Copy Newest Data From Multiple Locations with Multiple Workbooks to a Master Workbook

    Quote Originally Posted by Greg M View Post
    Hi there,

    Can the worksheets in the Master workbook be named with the appropriate date (e.g. "01-02-2016") rather than "Sheet1", "Sheet2" etc.? This approach would make it easier to check whether or not a raw data file had already been copied to the Master workbook.

    Regards,

    Greg M
    Hi Greg,

    The sheets could be named differently but because I will have another sheet with formulas that takes the data from the raw sheets, the tab names would have to remain static in the Master Workbook. I need the newer data to overwrite what's currently in the worksheets.

    Thanks.

+ 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. Copy data from multiple workbooks into one master workbook
    By hellohello1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2014, 04:28 AM
  2. Copy data from multiple workbooks to one master workbook
    By kevinvanberkel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 12:26 PM
  3. Copy Data from multiple workbooks to a master Workbook
    By zeeez in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-04-2012, 01:45 PM
  4. Copy data from multiple workbooks into consolidated/master workbook
    By mobro1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2012, 02:42 PM
  5. Copy Data from Multiple Workbooks into Master Workbook Daily
    By gilbare in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2012, 05:45 PM
  6. Copy data from multiple workbooks to a single master workbook
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2012, 03:44 AM
  7. Replies: 5
    Last Post: 03-05-2012, 09:31 AM
  8. Replies: 24
    Last Post: 02-17-2012, 11:30 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