Ananthak275
Board Regular
- Joined
- Aug 22, 2020
- Messages
- 128
- Office Version
- 2013
- Platform
- Windows
- MacOS
Hi,
I'm trying to create a VBA where it moves all the files except the most recent one to a new folder (example; //documents/data/))
The file names are consistent format (Example: FileName-2021-07-28). as the only thing that changes is the date. For example, within a folder it can contain these files;
FileName-2021-07-28.xlsx
FileName-2021-07-27.xlsx
FileName-2021-07-26.xlsx
move files both 27 and 26.
I'm trying to create a VBA where it moves all the files except the most recent one to a new folder (example; //documents/data/))
The file names are consistent format (Example: FileName-2021-07-28). as the only thing that changes is the date. For example, within a folder it can contain these files;
FileName-2021-07-28.xlsx
FileName-2021-07-27.xlsx
FileName-2021-07-26.xlsx
move files both 27 and 26.