<?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: Range Areas</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: jaider</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/#comment-43144</link>
		<dc:creator>jaider</dc:creator>
		<pubDate>Mon, 04 Jan 2010 01:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=996#comment-43144</guid>
		<description>&lt;p&gt;an example, what happen if i have the table with the id and name the programs, and I have another table that i want give the id and return the name program using DGET.. is not posible because DGET need header for criteria and only i have 1 header for this field.. if I can write something like &quot;id&quot;:A2 instead of A1:A2 is good enough. because i using &quot;id&quot;:A3 , &quot;id&quot;:A4 and so on..&lt;/p&gt;
&lt;p&gt;note: obviously &quot;id&quot;:A2 is not working is only an possible solution, can be also {&quot;id&quot;,A2} or &quot;id&quot;&amp;A2.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>an example, what happen if i have the table with the id and name the programs, and I have another table that i want give the id and return the name program using DGET.. is not posible because DGET need header for criteria and only i have 1 header for this field.. if I can write something like &#8220;id&#8221;:A2 instead of A1:A2 is good enough. because i using &#8220;id&#8221;:A3 , &#8220;id&#8221;:A4 and so on..</p>
<p>note: obviously &#8220;id&#8221;:A2 is not working is only an possible solution, can be also {&#8220;id&#8221;,A2} or &#8220;id&#8221;&amp;A2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/#comment-18101</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Fri, 06 Jan 2006 16:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=996#comment-18101</guid>
		<description>&lt;p&gt;Here is what I did:&lt;/p&gt;
&lt;p&gt;Sub doFillOrders()&lt;br&gt;
Dim oTotalOrder                 As Range&lt;br&gt;
Dim oStandingOrder              As Range&lt;br&gt;
Dim oSupplementalOrder          As Range&lt;br&gt;
Dim lStordItems                 As Long&lt;br&gt;
Dim lSupItems                   As Long&lt;/p&gt;
&lt;p&gt;    Application.ScreenUpdating = False&lt;/p&gt;
&lt;p&gt;    lStordItems = Application.WorksheetFunction.CountA(Range(&quot;stordItems&quot;)) &#039;   standing order&lt;br&gt;
    lSupItems = Application.WorksheetFunction.CountA(Range(&quot;supItems&quot;))     &#039;   supplemental order&lt;/p&gt;
&lt;p&gt;    Range(&quot;firstItemQty&quot;).Select&lt;br&gt;
    Range(Selection, ActiveCell.Offset(lStordItems - 1, 2)).Select&lt;br&gt;
    Set oStandingOrder = Selection&lt;/p&gt;
&lt;p&gt;    Range(&quot;supplement_begin&quot;).Select&lt;br&gt;
    Range(Selection, ActiveCell.Offset(lSupItems - 1, 2)).Select&lt;br&gt;
    Set oSupplementalOrder = Selection&lt;/p&gt;
&lt;p&gt;    Application.ScreenUpdating = True&lt;br&gt;
    Set oTotalOrder = Union(oStandingOrder, oSupplementalOrder)&lt;/p&gt;
&lt;p&gt;&#039;   no null fields please&lt;br&gt;
    If isCompleteOrder(oTotalOrder) Then&lt;br&gt;
       Call doUpdateSales(oTotalOrder)      &#039;   update access db&lt;br&gt;
    Else&lt;br&gt;
        MsgBox &quot;Incomplete Data, Check Entries and Try Again&quot;, vbCritical, &quot;ERROR&quot;&lt;br&gt;
    End If&lt;/p&gt;
&lt;p&gt;    Set oStandingOrder = Nothing&lt;br&gt;
    Set oSupplementalOrder = Nothing&lt;br&gt;
    Set oTotalOrder = Nothing&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here is what I did:</p>
<p>Sub doFillOrders()<br />
Dim oTotalOrder                 As Range<br />
Dim oStandingOrder              As Range<br />
Dim oSupplementalOrder          As Range<br />
Dim lStordItems                 As Long<br />
Dim lSupItems                   As Long</p>
<p>    Application.ScreenUpdating = False</p>
<p>    lStordItems = Application.WorksheetFunction.CountA(Range(&#8220;stordItems&#8221;)) &#8216;   standing order<br />
    lSupItems = Application.WorksheetFunction.CountA(Range(&#8220;supItems&#8221;))     &#8216;   supplemental order</p>
<p>    Range(&#8220;firstItemQty&#8221;).Select<br />
    Range(Selection, ActiveCell.Offset(lStordItems &#8211; 1, 2)).Select<br />
    Set oStandingOrder = Selection</p>
<p>    Range(&#8220;supplement_begin&#8221;).Select<br />
    Range(Selection, ActiveCell.Offset(lSupItems &#8211; 1, 2)).Select<br />
    Set oSupplementalOrder = Selection</p>
<p>    Application.ScreenUpdating = True<br />
    Set oTotalOrder = Union(oStandingOrder, oSupplementalOrder)</p>
<p>&#8216;   no null fields please<br />
    If isCompleteOrder(oTotalOrder) Then<br />
       Call doUpdateSales(oTotalOrder)      &#8216;   update access db<br />
    Else<br />
        MsgBox &#8220;Incomplete Data, Check Entries and Try Again&#8221;, vbCritical, &#8220;ERROR&#8221;<br />
    End If</p>
<p>    Set oStandingOrder = Nothing<br />
    Set oSupplementalOrder = Nothing<br />
    Set oTotalOrder = Nothing</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/#comment-18100</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Fri, 06 Jan 2006 15:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=996#comment-18100</guid>
		<description>&lt;p&gt;If I have two distinct discontinuos lists which individually are three columns wide but the rows may vary from 0:N.&lt;/p&gt;
&lt;p&gt;   How would one select the contents of these two &#039;AREAS&#039; programatically if there were only one item in either area?  (0 items and many items is simple.)&lt;/p&gt;
&lt;p&gt; Range(Selection, Selection.End(xlRight)).Select&lt;br&gt;
 Range(Selection, Selection.End(xlDown)).Select&lt;/p&gt;
&lt;p&gt;won&#039;t work with one row because you get to &#039;davy jones locker&#039; pretty fast.&lt;/p&gt;
&lt;p&gt; Range(&quot;firstCellInArea&quot;).CurrentRegion.Select &lt;/p&gt;
&lt;p&gt;won&#039;t work because there are headers and one column is populated with formulas&lt;/p&gt;
&lt;p&gt;doco&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If I have two distinct discontinuos lists which individually are three columns wide but the rows may vary from 0:N.</p>
<p>   How would one select the contents of these two &#8216;AREAS&#8217; programatically if there were only one item in either area?  (0 items and many items is simple.)</p>
<p> Range(Selection, Selection.End(xlRight)).Select<br />
 Range(Selection, Selection.End(xlDown)).Select</p>
<p>won&#8217;t work with one row because you get to &#8216;davy jones locker&#8217; pretty fast.</p>
<p> Range(&#8220;firstCellInArea&#8221;).CurrentRegion.Select </p>
<p>won&#8217;t work because there are headers and one column is populated with formulas</p>
<p>doco</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/#comment-6273</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Sun, 30 Jan 2005 03:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=996#comment-6273</guid>
		<description>&lt;p&gt;Anantha,&lt;/p&gt;
&lt;p&gt;I think this is quite difficult. I&#039;ve never dont it myself but understand it involves creating the formula auditing arrows and navigating them to the next sheet.&lt;/p&gt;
&lt;p&gt;This Groups search might assist:&lt;br&gt;
&lt;a href=&quot;http://groups.google.com/groups?hl=en&amp;lr=&amp;scoring=d&amp;q=excel+precedents+NavigateArrow+MVP&quot;&gt;Google Groups Excel Precedents&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br&gt;
Rob&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Anantha,</p>
<p>I think this is quite difficult. I&#8217;ve never dont it myself but understand it involves creating the formula auditing arrows and navigating them to the next sheet.</p>
<p>This Groups search might assist:<br />
<a href="http://groups.google.com/groups?hl=en&amp;lr=&amp;scoring=d&amp;q=excel+precedents+NavigateArrow+MVP">Google Groups Excel Precedents</a></p>
<p>Cheers,<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anantha</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/#comment-6260</link>
		<dc:creator>Anantha</dc:creator>
		<pubDate>Sat, 29 Jan 2005 11:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=996#comment-6260</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to find the Precedents of a given cell. I am able to find the precedents in the Active sheet.&lt;/p&gt;
&lt;p&gt;Is it possible to find the Precedents of a given cell in an Inactive Worksheet?&lt;/p&gt;
&lt;p&gt;Plz reply.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br&gt;
anantha&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to find the Precedents of a given cell. I am able to find the precedents in the Active sheet.</p>
<p>Is it possible to find the Precedents of a given cell in an Inactive Worksheet?</p>
<p>Plz reply.</p>
<p>Thanks,</p>
<p>Cheers,<br />
anantha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/#comment-6110</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 26 Jan 2005 13:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=996#comment-6110</guid>
		<description>&lt;p&gt;Note that a connected range is not necessarily contiguous:&lt;/p&gt;
&lt;p&gt;?union(range(&quot;A1:A5?),range(&quot;B1:B5?)).Areas.Count&lt;br&gt;
 1&lt;br&gt;
?union(range(&quot;A1:A5?),range(&quot;C1:C5?)).Areas.Count&lt;br&gt;
 2&lt;br&gt;
?union(range(&quot;A1:A5?),range(&quot;B2:B5?)).Areas.Count&lt;br&gt;
 2 &lt;/p&gt;
&lt;p&gt;The first makes A1:B5, which is a nice rectangular contiguous range. The second is obviously discontiguous. The third is not considered contiguous by Excel, because it&#039;s missing a corner. You need to refrence both areas to describe its shape.&lt;/p&gt;
&lt;p&gt;Another strangeness is that the areas are numbered in the order they are selected or defined. Both of these define the same bunch of cells on the worksheet, but in one case, column A is specified first, in the other column C is specified first. Area(1) and Area(2) switch, as does the address of the combined range.&lt;/p&gt;
&lt;p&gt;?union(range(&quot;A1:A5?),range(&quot;C1:C5?)).Address(false,false)&lt;br&gt;
A1:A5,C1:C5&lt;/p&gt;
&lt;p&gt;?union(range(&quot;A1:A5?),range(&quot;C1:C5?)).Areas(1).Address(false,false)&lt;br&gt;
A1:A5&lt;/p&gt;
&lt;p&gt;?union(range(&quot;C1:C5?),range(&quot;A1:A5?)).Address(false,false)&lt;br&gt;
C1:C5,A1:A5&lt;/p&gt;
&lt;p&gt;?union(range(&quot;C1:C5?),range(&quot;A1:A5?)).Areas(1).Address(false,false)&lt;br&gt;
C1:C5&lt;/p&gt;
&lt;p&gt;You have to be careful, because this line of code from the discussion above will have different effects:&lt;/p&gt;
&lt;p&gt;MyRange.Areas(2).Font.Bold = True&lt;/p&gt;
&lt;p&gt;- Jon&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Note that a connected range is not necessarily contiguous:</p>
<p>?union(range(&#8220;A1:A5?),range(&#8220;B1:B5?)).Areas.Count<br />
 1<br />
?union(range(&#8220;A1:A5?),range(&#8220;C1:C5?)).Areas.Count<br />
 2<br />
?union(range(&#8220;A1:A5?),range(&#8220;B2:B5?)).Areas.Count<br />
 2 </p>
<p>The first makes A1:B5, which is a nice rectangular contiguous range. The second is obviously discontiguous. The third is not considered contiguous by Excel, because it&#8217;s missing a corner. You need to refrence both areas to describe its shape.</p>
<p>Another strangeness is that the areas are numbered in the order they are selected or defined. Both of these define the same bunch of cells on the worksheet, but in one case, column A is specified first, in the other column C is specified first. Area(1) and Area(2) switch, as does the address of the combined range.</p>
<p>?union(range(&#8220;A1:A5?),range(&#8220;C1:C5?)).Address(false,false)<br />
A1:A5,C1:C5</p>
<p>?union(range(&#8220;A1:A5?),range(&#8220;C1:C5?)).Areas(1).Address(false,false)<br />
A1:A5</p>
<p>?union(range(&#8220;C1:C5?),range(&#8220;A1:A5?)).Address(false,false)<br />
C1:C5,A1:A5</p>
<p>?union(range(&#8220;C1:C5?),range(&#8220;A1:A5?)).Areas(1).Address(false,false)<br />
C1:C5</p>
<p>You have to be careful, because this line of code from the discussion above will have different effects:</p>
<p>MyRange.Areas(2).Font.Bold = True</p>
<p>- Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r.venkataraman</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/01/26/range-areas/#comment-6088</link>
		<dc:creator>r.venkataraman</dc:creator>
		<pubDate>Wed, 26 Jan 2005 12:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=996#comment-6088</guid>
		<description>&lt;p&gt;some problem occurs if the intervening column is a blank column. I think in that case it treats as one area. Or am I wrong?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>some problem occurs if the intervening column is a blank column. I think in that case it treats as one area. Or am I wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

