I have a macro that will save a file directly from Outlook into a directory based on an Outlook Rule. (Currently it is saving in my Documents Folder)
What I want to be able to do, is chain that into another Macro that Renames that file. The main issue I have is that I won't know the name of the file because they like to add random dates to the end of the file. Basically XYZ 4-4-2018 or XYA 04-19-18 which is very inconsistent. Since I have it copy the file over to my directory, I would want another to just rename the most recent file. Or if worse comes to worse, I'll put it into its own directory and just have it be deleted before the rule runs.
So my question is: How do I Rename the Newest File without knowing the exact path name.
What I want to be able to do, is chain that into another Macro that Renames that file. The main issue I have is that I won't know the name of the file because they like to add random dates to the end of the file. Basically XYZ 4-4-2018 or XYA 04-19-18 which is very inconsistent. Since I have it copy the file over to my directory, I would want another to just rename the most recent file. Or if worse comes to worse, I'll put it into its own directory and just have it be deleted before the rule runs.
So my question is: How do I Rename the Newest File without knowing the exact path name.