copying all .xls file to single parent directory

Venus_excel

Board Regular
Joined
Dec 18, 2013
Messages
74
Hi all,

Hope u ppl can help.

i need to copy all .xls file into single folder and this folder contains multiple subfolder, and further subfolders in each of them, and so on..

so all excel files should be in a single folder.

THanks in advance
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi VBA Geek,

Im getting this error msg "some files were not copied".
Can you pls guide me why Im getting this error.
Thanks
 
Upvote 0
why are you using VBA to do the task?

why don't you use windows explorer ? (i am assuming that you are using ms windows)
 
Upvote 0
Hi Jsotola,

My requirement is "copying all excel files to single folder" in VBA.
Code i used is not copying all the files.
 
Upvote 0
Hi VBA Geek,

1) All files are in .xlsx format
2) Folder contain 40 files and code copied only 29 files and pop-up raised says "some files were not copied".
 
Upvote 0
did you input xlsx in the format input box?

are they located in one folder or in subfolders as well?
 
Upvote 0

Forum statistics

Threads
1,216,739
Messages
6,132,440
Members
449,728
Latest member
teodora bocarski

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