Copying Files

wiscokid

Board Regular
Joined
Aug 2, 2004
Messages
112
I have a number of files in a folder and want to copy them all to another folder on my network.

I was going to accomplich this by opening a workbook, and within the autoopen macro have the files copied.

Does anyone know an easy way to copy all of the files from a given directory to another directory?

Thanks in Advance

Paul
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Do you really need to use Excel?

Can't you just use Windows Explorer, select the files, copy them and then paste them?
 
Upvote 0
There are over 30 files in 5 differnt directories which will be placed into one directory. This has to be done daily. I wanted the person who will be updating the files to have to only open an excel sheet and the rest would be taken care of.
 
Upvote 0
If you really need to do this using Excel VBA then why not take a look at the FileCopy statement.

If you need more specific help then I think more information is required.
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,168
Members
449,296
Latest member
tinneytwin

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