<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PcTechBlog &#187; Excel</title>
	<atom:link href="http://www.pctechblog.com/category/software/excel/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pctechblog.com</link>
	<description>random talk about pc problems</description>
	<lastBuildDate>Fri, 03 Jul 2009 19:36:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Excel export to csv double quotes</title>
		<link>http://www.pctechblog.com/software/excel/exel-export-to-csv-double-quotes</link>
		<comments>http://www.pctechblog.com/software/excel/exel-export-to-csv-double-quotes#comments</comments>
		<pubDate>Sat, 03 Jan 2009 12:15:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[export]]></category>

		<guid isPermaLink="false">http://www.pctechblog.com/?p=57</guid>
		<description><![CDATA[Microsoft Excel has limited  or no  options regarding the export to csv  feature.   For example, you can not select that exported values will be included inside double quotes.
Here is a script that will do the job:
Sub subExportCSV()
On Error GoTo subexport_exit
Dim strDelimiter As String
strDelimiter = Chr(9)
Dim strQualifier As String
strQualifier = &#8220;&#8221;"&#8221;
Dim [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft Excel has limited  or no  options regarding the export to csv  feature.   For example, you can not select that exported values will be included inside double quotes.</p>
<p><span id="more-57"></span>Here is a script that will do the job:</p>
<p>Sub subExportCSV()<br />
On Error GoTo subexport_exit<br />
Dim strDelimiter As String<br />
strDelimiter = Chr(9)<br />
Dim strQualifier As String<br />
strQualifier = &#8220;&#8221;"&#8221;</p>
<p>Dim arrRng<br />
arrRng = ActiveSheet.UsedRange.Value<br />
Dim f As String<br />
Dim i As Long<br />
Dim j As Long<br />
Dim strTemp As String</p>
<p>f = InputBox(&#8221;Enter a filename for saving&#8221;, , &#8220;c:\test.csv&#8221;)<br />
If Trim(f) = &#8220;&#8221; Then Exit Sub<br />
Open f For Output As #1</p>
<p>strTemp = &#8220;&#8221;</p>
<p>For i = 1 To UBound(arrRng, 1)<br />
strTemp = &#8220;&#8221;<br />
For j = 1 To UBound(arrRng, 2)<br />
strTemp = strTemp &amp; strQualifier &amp; arrRng(i, j) &amp; strQualifier &amp; strDelimiter<br />
Next j<br />
Print #1, Left(strTemp, Len(strTemp) &#8211; Len(strDelimiter))<br />
Next i</p>
<p>subexport_exit:<br />
Close #1<br />
End Sub</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pctechblog.com/software/excel/exel-export-to-csv-double-quotes/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
