Dear all ,
Hope you are all safe
I have a doubt , I have a folder and 5 excel files are on it . i want to delete the oldest excel file from that. how can i solve this.
Thank you all
Dear all ,
Hope you are all safe
I have a doubt , I have a folder and 5 excel files are on it . i want to delete the oldest excel file from that. how can i solve this.
Thank you all
Hello,
here an example, how to find the oldest file in a folder. The first code is the function which is looking for the oldest file. The 2nd code is the sub to call this function.
In the 2nd code you just have to insert your path to the folder.
Please Login or Register to view this content.
Instead or after the msgbox you can enter the code to delete the file.Please Login or Register to view this content.
Greetings
Tor
Thank you soo much MRUTOR , its works perfectly ...
You are welcome. Glad to help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks