Return to VBA Code Examples

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.


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


VBA Code Examples Add-in

Easily access all of the code examples found on our site.

Simply navigate to the menu, click, and the code will be inserted directly into your module. .xlam add-in.

(No installation required!)

Free Download

Return to VBA Code Examples