+ Reply to Thread
Results 1 to 2 of 2

Open most recent file and V-lookup to extract data

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    Portland, Or
    MS-Off Ver
    2007
    Posts
    3

    Lightbulb Open most recent file and V-lookup to extract data

    Hello,

    Please be patient with my verbiage, as I am new to VBA coding, I appreciate your help GREATLY! I've done the best research I can do on these threads, but I can't seem find one specific to my quest.

    Goal: To write VBA code that opens the most recent file created in a specific folder, open it, and extract data to the current workbook.

    Example:

    Report 1: "Customer 08-13-2014"
    Report 2: "Customer 08-20-2014"

    Both Reports are in the same folder. I work in an accounts receivable and these reports are weekly agings that contain invoices, due dates, amount dues, etc... Each week when I create the reports, I add specific notes to the report. So, with each new week (another report), I manually v-lookup(report 2) to the prior weeks report (report 1) and copy them to the new report (report 2)

    Data example simplified: In Report 2 Column "x", I v-lookup column "a" in table array report 2; columns "a:f"

    Since I am newbie, if I missed any pertinent information, will you please let me know? In my department our reports reference other reports quite often, so we are constantly using vlookup against other reports to retrieve information. And each week those reports are updated with a new file and date, so if I can figure out this VBA coding, it will be a LIFE SAVER! I can't be thankful enough to those who decide to take on this challenge/task with me.

    Again, thank you, and please me know what other information would be helpful for this code.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166
    Hello goldbeck09,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] Open an xlsx with most recent date in filename, run my data pulling macro, then move file
    By alanwu07 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2013, 05:24 AM
  2. Open most recent file
    By papfles in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-23-2010, 07:40 AM
  3. How to open the most recent file in a folder
    By Mr. Structure in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-30-2010, 09:42 AM
  4. Open most recent external file
    By starcraftbud in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-22-2010, 12:03 PM
  5. Batch file to open the most recent excel file
    By rajasekhar28 in forum Excel General
    Replies: 2
    Last Post: 12-30-2009, 08:00 AM

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