<?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: Listing Formulas</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2010/02/26/listing-formulas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2010/02/26/listing-formulas/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:06:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rick Rothstein (MVP - Excel)</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/02/26/listing-formulas/#comment-44227</link>
		<dc:creator>Rick Rothstein (MVP - Excel)</dc:creator>
		<pubDate>Fri, 26 Feb 2010 18:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3603#comment-44227</guid>
		<description>&lt;p&gt;@Nick and Dick...&lt;/p&gt;
&lt;p&gt;I guess I should have included an &quot;On Error&quot; statement just to protect against the Selection having no formulas in any of its cells...&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; ListFormulas()&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; rCell &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;On&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Error&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Resume&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; TypeName(Selection) = &lt;span class=&quot;st0&quot;&gt;&quot;Range&quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; rCell &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; Selection.SpecialCells(xlCellTypeFormulas)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; Debug.&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; Space(4) &amp; rCell.Address(0, 0), rCell.Formula&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; rCell&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>@Nick and Dick&#8230;</p>
<p>I guess I should have included an &#8220;On Error&#8221; statement just to protect against the Selection having no formulas in any of its cells&#8230;</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Sub</span> ListFormulas()<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> rCell <span class="kw1">As</span> Range<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">Resume</span> <span class="kw1">Next</span><br />
&nbsp; &nbsp; <span class="kw1">If</span> TypeName(Selection) = <span class="st0">&#8220;Range&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> rCell <span class="kw1">In</span> Selection.SpecialCells(xlCellTypeFormulas)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.<span class="kw1">Print</span> Space(4) &amp; rCell.Address(0, 0), rCell.Formula<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Next</span> rCell<br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp;<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Rothstein (MVP - Excel)</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/02/26/listing-formulas/#comment-44224</link>
		<dc:creator>Rick Rothstein (MVP - Excel)</dc:creator>
		<pubDate>Fri, 26 Feb 2010 16:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3603#comment-44224</guid>
		<description>&lt;p&gt;@Nick and Dick...&lt;/p&gt;
&lt;p&gt;Here is another way to avoid cells that do not have formulas in them. This method has the advantage of not looping through, and testing, every cell in the selection as the SpecialCells method will only deliver a range of cells with formulas for the &quot;For Each&quot; statement to iterate through. Also note that I replaced the String function call with, in my opinion, the more apt Space function call.&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; ListFormulas()&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; rCell &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; TypeName(Selection) = &lt;span class=&quot;st0&quot;&gt;&quot;Range&quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; rCell &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; Selection.SpecialCells(xlCellTypeFormulas)&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; Debug.&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; Space(4) &amp; rCell.Address(0, 0), rCell.Formula&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; rCell&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>@Nick and Dick&#8230;</p>
<p>Here is another way to avoid cells that do not have formulas in them. This method has the advantage of not looping through, and testing, every cell in the selection as the SpecialCells method will only deliver a range of cells with formulas for the &#8220;For Each&#8221; statement to iterate through. Also note that I replaced the String function call with, in my opinion, the more apt Space function call.</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Sub</span> ListFormulas()<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> rCell <span class="kw1">As</span> Range<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">If</span> TypeName(Selection) = <span class="st0">&#8220;Range&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> rCell <span class="kw1">In</span> Selection.SpecialCells(xlCellTypeFormulas)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.<span class="kw1">Print</span> Space(4) &amp; rCell.Address(0, 0), rCell.Formula<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Next</span> rCell<br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp;<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Burns</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/02/26/listing-formulas/#comment-44223</link>
		<dc:creator>Nick Burns</dc:creator>
		<pubDate>Fri, 26 Feb 2010 15:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=3603#comment-44223</guid>
		<description>&lt;p&gt;Why not avoid those cells that do not have formulas:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; ListFormulas()&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; rCell &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range&lt;br&gt;
&#160; &#160;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; TypeName(Selection) = &lt;span class=&quot;st0&quot;&gt;&quot;Range&quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; rCell &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; Selection.Cells&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; rCell.HasFormula &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Debug.&lt;span class=&quot;kw1&quot;&gt;Print&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;(4, &lt;span class=&quot;st0&quot;&gt;&quot; &quot;&lt;/span&gt;) &amp; rCell.Address(0, 0), rCell.Formula&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; rCell&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Why not avoid those cells that do not have formulas:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Sub</span> ListFormulas()<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">Dim</span> rCell <span class="kw1">As</span> Range<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; <span class="kw1">If</span> TypeName(Selection) = <span class="st0">&#8220;Range&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> rCell <span class="kw1">In</span> Selection.Cells<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> rCell.HasFormula <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.<span class="kw1">Print</span> <span class="kw1">String</span>(4, <span class="st0">&#8221; &#8220;</span>) &amp; rCell.Address(0, 0), rCell.Formula<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Next</span> rCell<br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp;<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>

