Hello Friends,
I need a VBA Code which could do the following if possible
1) The code should first go to D:\ Drive there might be a folder starting with the name OneDrive Backup followed by some other text like date and time etc & delete that folder. If there is no folder in D:\ Drive starting with the name OneDrive Backup then code should jump to the next step
2) Next the code should create a new folder in D:\ Drive and name it OneDrive Backup followed by date & time (like OneDrive Backup 10-Mar-24 10:00 PM)
3) Next go to a folder C:\OneDrive - open that folder and copy everything from that folder and paste it in the newly created folder i.e. D:\OneDrive Backup
Regards,
Humayun
I need a VBA Code which could do the following if possible
1) The code should first go to D:\ Drive there might be a folder starting with the name OneDrive Backup followed by some other text like date and time etc & delete that folder. If there is no folder in D:\ Drive starting with the name OneDrive Backup then code should jump to the next step
2) Next the code should create a new folder in D:\ Drive and name it OneDrive Backup followed by date & time (like OneDrive Backup 10-Mar-24 10:00 PM)
3) Next go to a folder C:\OneDrive - open that folder and copy everything from that folder and paste it in the newly created folder i.e. D:\OneDrive Backup
Regards,
Humayun