Combining Multiple CSV Files using vba code

  • Thread starter Thread starter davebop
  • Start date Start date
D

davebop

I have several csv files all with the same columns of data.

The filenames are all in the same format (usage_01_monday.csv
usage_01_tuesday.csv, etc.)

I would like to combine the csv files into one masterfile, by th
number in the filename. Therefore something like usage_01_*.csv need
to be used i think.

Can anyone help
 
I'd shell to DOS and do it with an old DOS command.

Travers to that folder that holds these files:

copy usage_*.csv all.csv

Then back to excel and import all.csv
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top