+ Reply to Thread
Results 1 to 4 of 4

Extracting values from latest closed workbook into current workbook?

  1. #1
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Extracting values from latest closed workbook into current workbook?

    Extracting values from latest closed workbook into current workbook?


    Hi, having some challanges extracting values from latest workbook. Files in "C:\" have files where filenames are dates and on a weekly bases the files in this folder change. So basically the file "062215_L01.xls" will change to "062915_L01.xls" next week. I would like to get data from the latest _L01 file. Is there a way around this? Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Extracting values from latest closed workbook into current workbook?

    try this code:
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Re: Extracting values from latest closed workbook into current workbook?

    Quote Originally Posted by p24leclerc View Post
    try this code:
    Please Login or Register  to view this content.
    Thanks p24leclerc, how can i adjust this so it takes the first Monday of the current week?

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Extracting values from latest closed workbook into current workbook?

    change the -1 in the DataAdd function to 0.

+ 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. Matching data from closed workbook with open workbook based on cell values
    By kbkrueger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2015, 07:42 PM
  2. [SOLVED] Copy a Worksheet from a Closed Workbook to the Current Opened Workbook
    By glennchung in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-28-2014, 12:55 PM
  3. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  4. Copy cell values from open workbook to closed workbook
    By merrener in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2012, 03:14 AM
  5. [SOLVED] Extracting data from a closed workbook
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 10:50 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