+ Reply to Thread
Results 1 to 5 of 5

Macro to carry over data from most recent report

  1. #1
    Registered User
    Join Date
    08-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Macro to carry over data from most recent report

    Hi,
    I have two parts to my problem.

    1)I’m trying to develop a daily macro where a part of this will involve opening up the output of this macro from the previous day. So the output of this macro will be called “Daily Exception Report DD.MM.YYYY” .So for my macro run on 29/09/2015, I want it to open the “Daily Exception Report” from 28/09/2015, if there is no report on this day, open up the file from the previous day, and so on until the closest available report to today is found.

    2)I then want to do a v lookup to carry over some data that I have in yesterday’s report to the report I am generating today. So my formula for the report on 29/09/2015 would look like:

    =VLOOKUP(A2,'[Daily Exception Report 28.09.2015.xlsx]!$A:$H,2,FALSE)

    Essentially, I don’t know how to write the code complete the vlookup with varying dates. So today the vlookup will look like the example above and then tomorrow it will look like:

    =VLOOKUP(A2,'[Daily Exception Report 29.09.2015.xlsx]!$A:$H,2,FALSE)


    Very much stumped on both of these problems so any help would be really appreciated!

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Macro to carry over data from most recent report

    Cross-post;http://www.mrexcel.com/forum/excel-q...nt-report.html
    Please click the * Add Reputation if this helps
    If solved remember to mark Thread as solved

    "I'm glad to help and this is not meant to sound smart, but either you have super-human vision to see all those controls cleared one by one with the code I posted, or your computer is really slow."

  3. #3
    Registered User
    Join Date
    08-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Re: Macro to carry over data from most recent report

    Is that not allowed? I'm relatively new to this....

  4. #4
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Macro to carry over data from most recent report


  5. #5
    Registered User
    Join Date
    08-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Re: Macro to carry over data from most recent report

    Ok..... noted.

+ 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. Replies: 6
    Last Post: 10-29-2013, 12:37 AM
  2. Macro to insert most recent .prn file data into spreadsheet
    By martynmordecai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2013, 05:53 PM
  3. [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
  4. Change source data Macro (macro) in report template
    By andygeb in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-14-2010, 11:14 PM
  5. How to create a Macro to carry over cell amount
    By mik00725 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2008, 01:20 AM
  6. pause macro until data has been selected then carry on
    By stevekirk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2007, 03:32 PM
  7. [SOLVED] Stumped - How to report most recent line/row?
    By seve in forum Excel General
    Replies: 3
    Last Post: 03-30-2006, 03:54 PM
  8. carry over data
    By melzki in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2005, 01:06 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