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

Associated Files Download Links

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.



For a few other options, look here:



VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro – A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!

alt text

Learn More!

<<Return to VBA Examples