copy / rename / move

anees420

New Member
Joined
Mar 8, 2010
Messages
12
need some help copying and deleting files

here is what i would like the macro to do

1. go into a specific folder (c:\downloads)

2. copy the most current xls file that starts with asap-files and has a xls extension to c:\temp\working_asap.xls (specific name)

4. delete the rest of the xls files in c:\downloads that start with asap-files and has a xls extension

5. loop it every 180 seconds

i have a software witch downloads xls files every 30 seconds and i need to move the most current file and delete the rest of the xls files


Thank you all :)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Post up your edited version of that macro so we can see what you're trying. Give us any other specifics that help us understand your version.
 
Upvote 0

Forum statistics

Threads
1,222,903
Messages
6,168,939
Members
452,227
Latest member
sam1121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top