How to create a CSV with double quotes around all fields

G

Guest

Guest
I need to create a CSV with double quotes, i can do it by putting a comma in each cell but that seems rather rash just to receive a comma delimited file. I need this for import purposes to a third party data base.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
It is quite easy to write a csv file with double quotes using VBA I/O rather than saving the file as a csv file type. If you have some familiarity with writing VBA macros you could probably figure out how to do this fairly easily. Look up the keywords Open, Print #, Write #, and Close in the VBA helps.

If you are not familiar with VBA but would like to investigate this, respond back and I will post a bit of code that will write a worksheet in csv file format with the values enclosed in double quotes.
 
Upvote 0

Forum statistics

Threads
1,214,577
Messages
6,120,359
Members
448,956
Latest member
Adamsxl

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