<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Export Range to Delimited Text File</title>
	<atom:link href="http://www.automateexcel.com/2005/10/30/export_range_to_delimited_text_file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automateexcel.com/2005/10/30/export_range_to_delimited_text_file/</link>
	<description>Hundreds of Excel Tips &#38; Tricks</description>
	<lastBuildDate>Wed, 10 Mar 2010 07:03:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mark</title>
		<link>http://www.automateexcel.com/2005/10/30/export_range_to_delimited_text_file/comment-page-1/#comment-95</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 30 Oct 2005 18:34:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-95</guid>
		<description>john, thanks much, after I get this mysql error for this permalink sqaure I&#039;ll follow up.</description>
		<content:encoded><![CDATA[<p>john, thanks much, after I get this mysql error for this permalink sqaure I&#8217;ll follow up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.automateexcel.com/2005/10/30/export_range_to_delimited_text_file/comment-page-1/#comment-97</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 30 Oct 2005 18:33:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-97</guid>
		<description>The order of lines in my response got messed up. Here&#039;s how I meant to show it:&lt;br /&gt;
&lt;br /&gt;
This must be pretty slow, particularly with a large range. Instead of doing one cell at a time, which is rather time consuming, load the range into an array, which does it with a single round trip to Excel:&lt;br /&gt;
&lt;br /&gt;
Dim vRange as Variant&lt;br /&gt;
vRange = WhatRange.Value&lt;br /&gt;
&lt;br /&gt;
Then look through the rows and columns of the array.&lt;br /&gt;
&lt;br /&gt;
Dim i as Long&lt;br /&gt;
Dim j as Integer&lt;br /&gt;
&lt;br /&gt;
For i=LBound(vRange,1) to UBound(vRange,1)&lt;br /&gt;
&lt;br /&gt;
For j=LBound(vRange,2) to UBound(vRange,2)&lt;br /&gt;
ExportRange = ExportRange &amp; vRange(i,j) &amp; Delimiter&lt;br /&gt;
Next j&lt;br /&gt;
&#039;Trim extra delimiter, add CRLF&lt;br /&gt;
ExportRange = Left$(ExportRange, Len(ExportRange) - 1) &amp; vbCrLf&lt;br /&gt;
Next i&lt;br /&gt;
&#039;Trim extra CRLF&lt;br /&gt;
ExportRange = Left$(ExportRange, Len(ExportRange) - 1)&lt;br /&gt;
&lt;br /&gt;
Now populate the output file as before.&lt;br /&gt;
&lt;br /&gt;
- Jon</description>
		<content:encoded><![CDATA[<p>The order of lines in my response got messed up. Here&#8217;s how I meant to show it:</p>
<p>This must be pretty slow, particularly with a large range. Instead of doing one cell at a time, which is rather time consuming, load the range into an array, which does it with a single round trip to Excel:</p>
<p>Dim vRange as Variant<br />
vRange = WhatRange.Value</p>
<p>Then look through the rows and columns of the array.</p>
<p>Dim i as Long<br />
Dim j as Integer</p>
<p>For i=LBound(vRange,1) to UBound(vRange,1)</p>
<p>For j=LBound(vRange,2) to UBound(vRange,2)<br />
ExportRange = ExportRange &amp; vRange(i,j) &amp; Delimiter<br />
Next j<br />
&#8216;Trim extra delimiter, add CRLF<br />
ExportRange = Left$(ExportRange, Len(ExportRange) &#8211; 1) &amp; vbCrLf<br />
Next i<br />
&#8216;Trim extra CRLF<br />
ExportRange = Left$(ExportRange, Len(ExportRange) &#8211; 1)</p>
<p>Now populate the output file as before.</p>
<p>- Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.automateexcel.com/2005/10/30/export_range_to_delimited_text_file/comment-page-1/#comment-96</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 30 Oct 2005 18:33:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-96</guid>
		<description>This must be pretty slow, particularly with a large range. Instead of doing one cell at a time, which is rather time consuming, load the range into an array, which does it with a single round trip to Excel:&lt;br /&gt;
&lt;br /&gt;
Dim vRange as Variant&lt;br /&gt;
vRange = WhatRange.Value&lt;br /&gt;
&lt;br /&gt;
Then look through the rows and columns of the array.&lt;br /&gt;
&lt;br /&gt;
Dim i as Long&lt;br /&gt;
Dim j as Integer&lt;br /&gt;
&lt;br /&gt;
For i=LBound(vRange,1) to UBound(vRange,1)&lt;br /&gt;
&lt;br /&gt;
Now populate the output file as before.&lt;br /&gt;
&lt;br /&gt;
- Jon&lt;br /&gt;
For j=LBound(vRange,2) to UBound(vRange,2)&lt;br /&gt;
ExportRange = ExportRange &amp; vRange(i,j) &amp; Delimiter&lt;br /&gt;
Next j&lt;br /&gt;
&#039;Trim extra delimiter, add CRLF&lt;br /&gt;
ExportRange = Left$(ExportRange, Len(ExportRange) - 1) &amp; vbCrLf&lt;br /&gt;
Next i&lt;br /&gt;
&#039;Trim extra CRLF&lt;br /&gt;
ExportRange = Left$(ExportRange, Len(ExportRange) - 1)</description>
		<content:encoded><![CDATA[<p>This must be pretty slow, particularly with a large range. Instead of doing one cell at a time, which is rather time consuming, load the range into an array, which does it with a single round trip to Excel:</p>
<p>Dim vRange as Variant<br />
vRange = WhatRange.Value</p>
<p>Then look through the rows and columns of the array.</p>
<p>Dim i as Long<br />
Dim j as Integer</p>
<p>For i=LBound(vRange,1) to UBound(vRange,1)</p>
<p>Now populate the output file as before.</p>
<p>- Jon<br />
For j=LBound(vRange,2) to UBound(vRange,2)<br />
ExportRange = ExportRange &amp; vRange(i,j) &amp; Delimiter<br />
Next j<br />
&#8216;Trim extra delimiter, add CRLF<br />
ExportRange = Left$(ExportRange, Len(ExportRange) &#8211; 1) &amp; vbCrLf<br />
Next i<br />
&#8216;Trim extra CRLF<br />
ExportRange = Left$(ExportRange, Len(ExportRange) &#8211; 1)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
