VBA – Convert Excel to CSV (Comma Delimited Text File)


Convert Excel File to CSV

These two articles are the best places to start if you are looking to build a custom export to convert Excel to a CSV file.

First off, If you aren’t interested in using VBA but would still like to convert excel to a CSV file, just click File->Save As-> and in the Save as Type dropdown choose *.CSV

Here is a great way in VBA to convert to CSV. This method looks a bit daunting at first, but it is actually very easy, uses some error checking, let’s you choose the delimiter and other good stuff. Just create a new sub, and “call” this code using the provided example.

Link:

http://www.erlandsendata.no/english/index.php?d=envbatextexportcsv

For a few other options, look here:

Link:

http://www.mcgimpsey.com/excel/textfiles.html