Hey guys,
CSV files are systematically dumped into a folder. I'm looking to open the most recent one. I cannot delete or modify existing files in the folder.
Files always follow this naming format: Something_0419_Data.CSV
The problem I am facing is that the date - where it says "0419" is not always today's date. Files could have been added prior day or several days prior. So, I'd really need to go off date modified. I also need to go off date modified because prior year files are also in this folder. So it is possible for "Something_0419_Data.CSV" to be 2010 and the most recent file, but there could exist a file called "Something_0420_data.CSV"
I've searched the boards and looks like I need to use an FSO property? I have been trying several different codes I've gathered from threads but I can't get it quite right. I'm still more in the novice arena of VBA. Could someone please assist me with this issue? Thank you very much for the help.
Bookmarks