<?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: Finding cells matching a specific property using the CallByName function</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Menno</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14419</link>
		<dc:creator>Menno</dc:creator>
		<pubDate>Tue, 05 Jul 2005 13:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14419</guid>
		<description>&lt;p&gt;I&#039;ve tried both solutions...here&#039;s the results : &lt;/p&gt;
&lt;p&gt;1) logcells = formcells : the first value of the logcells get&#039;s copied to all cells in the formcells, and it never gets to the second field of the user form... so I&#039;ve got a form with value B14 everywhere :-)&lt;/p&gt;
&lt;p&gt;2) loop through with i :  values of the logcells get copied on cell 1 of formcells, and then continues on the cells under that one. (for a reason, he does : &quot;cell.offset(0,1)&quot;, instead of &quot;formcells.cells.next&quot; in the collection). That operation disrupts the whole form :-)&lt;/p&gt;
&lt;p&gt;Here&#039;s the actuale code I&#039;m working with, to give you an idea of the number of cells to be copied in various other cells. Here item 1 of userformcells corresponds to item 1 of logisticformcells etcaeetera :- )&lt;/p&gt;
&lt;p&gt;Set userformcells = Sheets(&quot;sheet1?).Range(&quot;C6, C10, C12,C14, C16, C18:C24, C26, C28, F10, F12, F14, F16, F18, E21, B33:B42, C33: C42, F33:F42?)&lt;/p&gt;
&lt;p&gt;Set logisticformcells = Sheets(&quot;RGS form (print)&quot;).Range(&quot;J8, H21, D21, D10, D22, D11 : D17, D19, D20, D23, I18, G23, J22, J24, D24, B32:B41, C32:C41, D32 :D41?)&lt;/p&gt;
&lt;p&gt;Thanks again for your help, much appreciated. Hope you can find me the missing code :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried both solutions&#8230;here&#8217;s the results : </p>
<p>1) logcells = formcells : the first value of the logcells get&#8217;s copied to all cells in the formcells, and it never gets to the second field of the user form&#8230; so I&#8217;ve got a form with value B14 everywhere <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>2) loop through with i :  values of the logcells get copied on cell 1 of formcells, and then continues on the cells under that one. (for a reason, he does : &#8220;cell.offset(0,1)&#8221;, instead of &#8220;formcells.cells.next&#8221; in the collection). That operation disrupts the whole form <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Here&#8217;s the actuale code I&#8217;m working with, to give you an idea of the number of cells to be copied in various other cells. Here item 1 of userformcells corresponds to item 1 of logisticformcells etcaeetera :- )</p>
<p>Set userformcells = Sheets(&#8220;sheet1?).Range(&#8220;C6, C10, C12,C14, C16, C18:C24, C26, C28, F10, F12, F14, F16, F18, E21, B33:B42, C33: C42, F33:F42?)</p>
<p>Set logisticformcells = Sheets(&#8220;RGS form (print)&#8221;).Range(&#8220;J8, H21, D21, D10, D22, D11 : D17, D19, D20, D23, I18, G23, J22, J24, D24, B32:B41, C32:C41, D32 <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> 41?)</p>
<p>Thanks again for your help, much appreciated. Hope you can find me the missing code <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Menno</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14418</link>
		<dc:creator>Menno</dc:creator>
		<pubDate>Tue, 05 Jul 2005 13:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14418</guid>
		<description>&lt;p&gt;I can&#039;t believe I missed that simple solution. I guess as usual we look at complication before the easy solution.. Thank you guys !!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I can&#8217;t believe I missed that simple solution. I guess as usual we look at complication before the easy solution.. Thank you guys !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14407</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Fri, 01 Jul 2005 10:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14407</guid>
		<description>&lt;p&gt;Of course you need to remove the line that says:&lt;/p&gt;
&lt;p&gt;logcells.Value=111&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Of course you need to remove the line that says:</p>
<p>logcells.Value=111</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14406</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Fri, 01 Jul 2005 10:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14406</guid>
		<description>&lt;p&gt;Doug&#039;s solution is if course simplest.&lt;/p&gt;
&lt;p&gt;You could also loop though:&lt;/p&gt;
&lt;p&gt;    Dim formcells As Range&lt;br&gt;
    Dim logcells As Range&lt;br&gt;
    Set formcells = Sheets(1).Range(&quot;A1, C58, G916?)&lt;br&gt;
    Set logcells = Sheets(2).Range(&quot;F2, H5, T46?)&lt;br&gt;
    logcells.Value = 111&lt;br&gt;
    Dim i As Integer&lt;br&gt;
    For i = 1 To 3&lt;br&gt;
        formcells.Cells(i).Value = logcells.Cells(i).Value&lt;br&gt;
    Next i&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Doug&#8217;s solution is if course simplest.</p>
<p>You could also loop though:</p>
<p>    Dim formcells As Range<br />
    Dim logcells As Range<br />
    Set formcells = Sheets(1).Range(&#8220;A1, C58, G916?)<br />
    Set logcells = Sheets(2).Range(&#8220;F2, H5, T46?)<br />
    logcells.Value = 111<br />
    Dim i As Integer<br />
    For i = 1 To 3<br />
        formcells.Cells(i).Value = logcells.Cells(i).Value<br />
    Next i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14402</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Thu, 30 Jun 2005 19:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14402</guid>
		<description>&lt;p&gt;Menno,&lt;/p&gt;
&lt;p&gt;If you are just copying the 3 values from sheet1 to sheet2 this would work:&lt;/p&gt;
&lt;p&gt;Sheets(2).Range(&quot;F2, H5, T46?) = Sheets(1).Range(&quot;A1, C58, G916?)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Menno,</p>
<p>If you are just copying the 3 values from sheet1 to sheet2 this would work:</p>
<p>Sheets(2).Range(&#8220;F2, H5, T46?) = Sheets(1).Range(&#8220;A1, C58, G916?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Menno</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14400</link>
		<dc:creator>Menno</dc:creator>
		<pubDate>Thu, 30 Jun 2005 15:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14400</guid>
		<description>&lt;p&gt;Hello !&lt;/p&gt;
&lt;p&gt;    This use of embedded FOR EACH function makes me think you have the solution to my problem :-)&lt;/p&gt;
&lt;p&gt;I&#039;m trying to embed two &quot;for each&quot; functions to get values transferred from one range to another one, item by item, which would, for example, give&lt;/p&gt;
&lt;p&gt;dim formcells = Range (&quot;A1, C58, G916?)&lt;br&gt;
dim logcells = sheets (2). Range (&quot;F2, H5, T46?)&lt;/p&gt;
&lt;p&gt;For each i in formcells&lt;br&gt;
     For each c in logcells&lt;br&gt;
       c.value = i.value&lt;br&gt;
     next c&lt;br&gt;
next i &lt;/p&gt;
&lt;p&gt;The problem is, my program only loops the c var, and never goes back to the first loop (i var), so that only the first value gets transferred to all cells of the second table.&lt;/p&gt;
&lt;p&gt;Could you help me out on that problem ? would be smashing !!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br&gt;
Menno&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello !</p>
<p>    This use of embedded FOR EACH function makes me think you have the solution to my problem <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I&#8217;m trying to embed two &#8220;for each&#8221; functions to get values transferred from one range to another one, item by item, which would, for example, give</p>
<p>dim formcells = Range (&#8220;A1, C58, G916?)<br />
dim logcells = sheets (2). Range (&#8220;F2, H5, T46?)</p>
<p>For each i in formcells<br />
     For each c in logcells<br />
       c.value = i.value<br />
     next c<br />
next i </p>
<p>The problem is, my program only loops the c var, and never goes back to the first loop (i var), so that only the first value gets transferred to all cells of the second table.</p>
<p>Could you help me out on that problem ? would be smashing !!</p>
<p>Thanks!<br />
Menno</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14390</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Wed, 29 Jun 2005 12:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14390</guid>
		<description>&lt;p&gt;You&#039;re welcome!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Roberts</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/23/finding-cells-matching-a-specific-property-using-the-callbyname-function/#comment-14377</link>
		<dc:creator>Andrew Roberts</dc:creator>
		<pubDate>Mon, 27 Jun 2005 21:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1172#comment-14377</guid>
		<description>&lt;p&gt;I tried creating this recently. But you have done all the hard work. Thank you!&lt;br&gt;
Andrew&lt;br&gt;
excelthoughts.com&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I tried creating this recently. But you have done all the hard work. Thank you!<br />
Andrew<br />
excelthoughts.com</p>
]]></content:encoded>
	</item>
</channel>
</rss>

