Help with exporting to a .csv

SteveD

Board Regular
Joined
Feb 20, 2002
Messages
104
Hi,

I need to format a cell using a macro so that when I save the sheet to a .csv file and I view it in notepad I get ...,"",... for that cell(where ... is the data before and after the two quotes)

I've tried:
ActiveCell.FormulaR1C1 = ""
When I export I get two commas next to each other: ...,,...

Then I tried:
ActiveCell.FormulaR1C1 = """
But the code was auto corrected to put in four quotes. The VB editor would not let me have just 3.

Finnaly tried:
ActiveCell.FormulaR1C1 = """"
Result after export: ...,"""",...

Can someone please let me know how I can just get the 2 quotes?
Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Thanks... but

Now when I export I receive:
...,"""""",...

I'm looking for:
...,"",...

Thanks for your help!
 
Upvote 0
I'm exporting this sheet so I can query it against a database. I need to link this field to an existing field whose value is "".

Anyone else have any ideas?
 
Upvote 0
I'd just enter " into the cells where you want "". Save as .CSV and then edit the file replacing all occurances of "" with ".
This message was edited by Mark W. on 2002-02-21 13:41
 
Upvote 0
Ya, I thought of that.
I was hoping that I would have Excel do this for me. I'm trying to wirte this to hand it off and want to make it as fool proof as possible.
Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,306
Messages
6,171,324
Members
452,396
Latest member
ajl_ahmed

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