How to create a CSV with double quotes around all fields

  • Thread starter Thread starter Guest
  • Start date Start date
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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,223,396
Messages
6,171,866
Members
452,427
Latest member
samk379

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