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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

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