Path to my sheets - "https://airport.ishare.tsa.dhs.gov/fieldlocations/MHT/soc/SOC Scheduling/Shared Documents/DOR"
DOR Folder is the top folder where my sheets will be found. Sub Folders are "Archived" and a monthly folder "2022.10" (that changes each month before being moved to the "Archived" folder.
What I need to get is the excel file dated the day before the current day. So if today is 10/15/22 I need to get the file named "DO Report 10-14-22". A new file is created each day. So tomorrow I will have a file named "DO Report 10-15-22" and so on.
This file could be in any of the 3 folders. ie: DOR, 2022.10, Archived. Next month one of the folders will change to 2022.11 and so on.
How do I do this using VBA? Thanks for any help.
DOR Folder is the top folder where my sheets will be found. Sub Folders are "Archived" and a monthly folder "2022.10" (that changes each month before being moved to the "Archived" folder.
What I need to get is the excel file dated the day before the current day. So if today is 10/15/22 I need to get the file named "DO Report 10-14-22". A new file is created each day. So tomorrow I will have a file named "DO Report 10-15-22" and so on.
This file could be in any of the 3 folders. ie: DOR, 2022.10, Archived. Next month one of the folders will change to 2022.11 and so on.
How do I do this using VBA? Thanks for any help.