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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
thanks for the link but that did not help me... i tried the marco and get

run-time error 1004
 
Upvote 0
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,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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