<?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: VBA: &#8220;dirty area&#8221;</title>
	<atom:link href="http://www.automateexcel.com/2004/10/30/excel_vba_dirty_area/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automateexcel.com/2004/10/30/excel_vba_dirty_area/</link>
	<description>Everything Excel. Only Excel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 07:25:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://www.automateexcel.com/2004/10/30/excel_vba_dirty_area/comment-page-1/#comment-43</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 25 Jan 2005 21:26:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-43</guid>
		<description>Elton,&lt;br /&gt;
The only drawback is I can&#039;t expect the users of something I build to always verify there aren&#039;t any blank cells in the data (there usually is), especially in a dataset of 20 or 30 thousand rows.&lt;br /&gt;
&lt;br /&gt;
If there aren&#039;t any missing data cells, I&#039;d guess this is probably a very fast routine.  Thanks for the code.  </description>
		<content:encoded><![CDATA[<p>Elton,<br />
The only drawback is I can&#8217;t expect the users of something I build to always verify there aren&#8217;t any blank cells in the data (there usually is), especially in a dataset of 20 or 30 thousand rows.</p>
<p>If there aren&#8217;t any missing data cells, I&#8217;d guess this is probably a very fast routine.  Thanks for the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#124;Elton Miranda Tavares</title>
		<link>http://www.automateexcel.com/2004/10/30/excel_vba_dirty_area/comment-page-1/#comment-42</link>
		<dc:creator>&#124;Elton Miranda Tavares</dc:creator>
		<pubDate>Tue, 25 Jan 2005 10:54:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-42</guid>
		<description>I usually use the following code to loop through a range (which should never have an empty cell):&lt;br /&gt;
&lt;br /&gt;
Dim c as Range&lt;br /&gt;
For each c in worksheets(&quot;MySheet&quot;).Range(&quot;A1:A65536&quot;)&lt;br /&gt;
     If c.Offset(1,0).Value  &quot;&quot;  Then  &#039; double quote marks means empty cell&lt;br /&gt;
          [Do my code here]&lt;br /&gt;
     ElseIf  c.Offset(1,0).Value = &quot;&quot;  Then&lt;br /&gt;
     Exit loop&lt;br /&gt;
Next c&lt;br /&gt;
&lt;br /&gt;
This code will always verify if the next cell immediately following current cell being looped by the code is empty. If so it knows thats the end of the range and shold exit from the loop. However, your range sholud never have an empty cell otherwise the code would leave the loop before ending the range. But if you import lists from other places and you don&#039;t know if there will be empty cells within the imported list, just write a code (For Each Next... Loop) to insert any character like &quot;-&quot; to &quot;fill up&quot; empty cells in the range to make you range without  empty cells.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</description>
		<content:encoded><![CDATA[<p>I usually use the following code to loop through a range (which should never have an empty cell):</p>
<p>Dim c as Range<br />
For each c in worksheets(&#8220;MySheet&#8221;).Range(&#8220;A1:A65536&#8243;)<br />
     If c.Offset(1,0).Value  &#8220;&#8221;  Then  &#8216; double quote marks means empty cell<br />
          [Do my code here]<br />
     ElseIf  c.Offset(1,0).Value = &#8220;&#8221;  Then<br />
     Exit loop<br />
Next c</p>
<p>This code will always verify if the next cell immediately following current cell being looped by the code is empty. If so it knows thats the end of the range and shold exit from the loop. However, your range sholud never have an empty cell otherwise the code would leave the loop before ending the range. But if you import lists from other places and you don&#8217;t know if there will be empty cells within the imported list, just write a code (For Each Next&#8230; Loop) to insert any character like &#8220;-&#8221; to &#8220;fill up&#8221; empty cells in the range to make you range without  empty cells.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

