Hi everyone.
I’m trying to build a macro that will open the most recent file (“Daily Report.”)
The problem is - the file is always saved as “\DailyReport_yyyymmdd” followed by a series of numbers representing a time stamp when the file was created. Unfortunately, the report can be run at different times, so while the end of the file always starts with “Daily Report,” and I can add an input box to enter the date (since older files are periodically needed), I need something that will ignore the last six characters between the date and .CSV.
Thanks in advance!
I’m trying to build a macro that will open the most recent file (“Daily Report.”)
The problem is - the file is always saved as “\DailyReport_yyyymmdd” followed by a series of numbers representing a time stamp when the file was created. Unfortunately, the report can be run at different times, so while the end of the file always starts with “Daily Report,” and I can add an input box to enter the date (since older files are periodically needed), I need something that will ignore the last six characters between the date and .CSV.
Thanks in advance!