Hello Everyone,
As part of a larger macro, I would like my code to open a previous day's workbook and then copy data in to the macro workbook. I should be okay to write the copying data to the macro workbook part, but I was hoping for a little help on the best way to open the previous day's workbook.
For example, since today is March 13, 2014, I would want to open yesterday's workbook. The path and filename would be as follows:
C:\Home\Numbers\Reconciliation\March_2014\Freybe06_summary_2014312.xlsx
If there is any way for the macro to look at the most recent file, that would probably be best because then it can't account for weekends, holidays, switching to a new month, etc.
Please let me know if you have any questions.
Thanks in advance!
As part of a larger macro, I would like my code to open a previous day's workbook and then copy data in to the macro workbook. I should be okay to write the copying data to the macro workbook part, but I was hoping for a little help on the best way to open the previous day's workbook.
For example, since today is March 13, 2014, I would want to open yesterday's workbook. The path and filename would be as follows:
C:\Home\Numbers\Reconciliation\March_2014\Freybe06_summary_2014312.xlsx
If there is any way for the macro to look at the most recent file, that would probably be best because then it can't account for weekends, holidays, switching to a new month, etc.
Please let me know if you have any questions.
Thanks in advance!