macros extracting multiple csvs from multiple locations onto a single XL

ali2000

New Member
Joined
Jun 4, 2015
Messages
1
Hi Everyone,

I use a reporting platform that downloads a CSV file daily for every month. these files go into G:\alpha\ali\tradeshop\2015-05 than t here are a folders for each day for example 20150501, 20150504, etc for each day of that month. Each of these daily folders have a number of CSV files however I just want to extract a particular csv file (which has exactly the same name in each of the daily folders) for each day in each folder. However weekends are not included and therefore folders are not created on these days.

I need a macro that will a) extract these CSV files of each day for the whole month. b) the dates will be different in each month therefore the csv files will be folders with different dates for each month c) place the data into a single file.

Thank you kindly.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,203,242
Messages
6,054,350
Members
444,718
Latest member
r0nster

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