<?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: Page update: Copy a range from closed workbooks (ADO)</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/</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: Joost</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-33756</link>
		<dc:creator>Joost</dc:creator>
		<pubDate>Mon, 21 Jul 2008 21:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-33756</guid>
		<description>&lt;p&gt;Getting data from closed workbooks with the macro from Ron de Bruin works great for me. Especially since I have a folder containing a changing number of source files. However, I do notice two minor issues: dynamic named ranges cannot be used with the &quot;getdata&quot; macro and columns containing dates seem to be difficult to transfer (only works when source file is open). Does anybody have some ideas how to get around these issues? Thanks in advance!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Getting data from closed workbooks with the macro from Ron de Bruin works great for me. Especially since I have a folder containing a changing number of source files. However, I do notice two minor issues: dynamic named ranges cannot be used with the &#8220;getdata&#8221; macro and columns containing dates seem to be difficult to transfer (only works when source file is open). Does anybody have some ideas how to get around these issues? Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron de Bruin</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29673</link>
		<dc:creator>Ron de Bruin</dc:creator>
		<pubDate>Mon, 31 Dec 2007 15:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29673</guid>
		<description>&lt;p&gt;Hi Alex&lt;/p&gt;
&lt;p&gt;I don&#039;t think it is possible with dynamic range names but I good be wrong.&lt;br&gt;
Maybe others can tell us if it is possible.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Alex</p>
<p>I don&#8217;t think it is possible with dynamic range names but I good be wrong.<br />
Maybe others can tell us if it is possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex J</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29665</link>
		<dc:creator>Alex J</dc:creator>
		<pubDate>Mon, 31 Dec 2007 00:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29665</guid>
		<description>&lt;p&gt;Ron,&lt;br&gt;
Thanks for the update. My quick test confirms that this works just fine. I will incorporate into more stringent testing for full confirmation.&lt;/p&gt;
&lt;p&gt;Also, I am assuming from my tests that the closed workbook access method will not can not) work for dynamic named ranges - can you confirm this? The obvious workaround for that is to construct static &#039;Export Ranges&#039; from the dynamic ranges to support closed wb access.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ron,<br />
Thanks for the update. My quick test confirms that this works just fine. I will incorporate into more stringent testing for full confirmation.</p>
<p>Also, I am assuming from my tests that the closed workbook access method will not can not) work for dynamic named ranges &#8211; can you confirm this? The obvious workaround for that is to construct static &#8216;Export Ranges&#8217; from the dynamic ranges to support closed wb access.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron de Bruin</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29664</link>
		<dc:creator>Ron de Bruin</dc:creator>
		<pubDate>Mon, 31 Dec 2007 00:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29664</guid>
		<description>&lt;p&gt;I changed the download on my page with the new function.&lt;/p&gt;
&lt;p&gt;Good night&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I changed the download on my page with the new function.</p>
<p>Good night</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron de Bruin</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29662</link>
		<dc:creator>Ron de Bruin</dc:creator>
		<pubDate>Sun, 30 Dec 2007 21:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29662</guid>
		<description>&lt;p&gt;Hi Alex&lt;/p&gt;
&lt;p&gt;This seems to work OK for me (fast test)&lt;br&gt;
Test it for me and let me know&lt;/p&gt;
&lt;p&gt;Change the szSQL line in the function to this&lt;/p&gt;
&lt;p&gt;If SourceSheet = &quot;&quot; Then&lt;br&gt;
&#039; workbook level name&lt;br&gt;
szSQL = &quot;SELECT * FROM &quot; &amp; SourceRange$ &amp; &quot;;&quot;&lt;br&gt;
Else&lt;br&gt;
&#039; worksheet level name&lt;br&gt;
szSQL = &quot;SELECT * FROM [&quot; &amp; SourceSheet$ &amp; &quot;$&quot; &amp; SourceRange$ &amp; &quot;];&quot;&lt;br&gt;
End If&lt;/p&gt;
&lt;p&gt;If you not fill in a sheet name in the macro it use the workbook level name.&lt;br&gt;
Will test more this week and update the page&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Alex</p>
<p>This seems to work OK for me (fast test)<br />
Test it for me and let me know</p>
<p>Change the szSQL line in the function to this</p>
<p>If SourceSheet = &#8220;&#8221; Then<br />
&#8216; workbook level name<br />
szSQL = &#8220;SELECT * FROM &#8221; &amp; SourceRange$ &amp; &#8220;;&#8221;<br />
Else<br />
&#8216; worksheet level name<br />
szSQL = &#8220;SELECT * FROM [" &amp; SourceSheet$ &amp; "$" &amp; SourceRange$ &amp; "];&#8221;<br />
End If</p>
<p>If you not fill in a sheet name in the macro it use the workbook level name.<br />
Will test more this week and update the page</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron de Bruin</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29650</link>
		<dc:creator>Ron de Bruin</dc:creator>
		<pubDate>Sat, 29 Dec 2007 13:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29650</guid>
		<description>&lt;p&gt;Hi Alex&lt;/p&gt;
&lt;p&gt;Yes this is possible.&lt;br&gt;
I will try to add a example next week to the page.&lt;br&gt;
To much work on this moment to do it this weekend (must work the whole weekend)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Alex</p>
<p>Yes this is possible.<br />
I will try to add a example next week to the page.<br />
To much work on this moment to do it this weekend (must work the whole weekend)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex J</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29641</link>
		<dc:creator>Alex J</dc:creator>
		<pubDate>Sat, 29 Dec 2007 00:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29641</guid>
		<description>&lt;p&gt;Ron,&lt;br&gt;
I am trying to use your GETDATA routine with named ranges on a closed workbook. I can make it work on the named range when the source workbook is open, but the same call fails when the source workbook is closed. The call DOES work if i replace the range name with the range address in the GETDATA function call. Note: The named range refers directly to an address - it is not a formula.&lt;/p&gt;
&lt;p&gt;Should this be possible?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ron,<br />
I am trying to use your GETDATA routine with named ranges on a closed workbook. I can make it work on the named range when the source workbook is open, but the same call fails when the source workbook is closed. The call DOES work if i replace the range name with the range address in the GETDATA function call. Note: The named range refers directly to an address &#8211; it is not a formula.</p>
<p>Should this be possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MacroMan</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29588</link>
		<dc:creator>MacroMan</dc:creator>
		<pubDate>Mon, 24 Dec 2007 17:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29588</guid>
		<description>&lt;p&gt;Thanks Ron.  I was also thinking of looping this SQL:&lt;/p&gt;
&lt;p&gt;sSQL = &quot;INSERT INTO Store (TIMEIN, MYDATE, MYSESSION, MANAGER, &quot; &amp; _&lt;br&gt;
    &quot;LEADNUMBER, CONSULTANT, PRIZE, &quot; &amp; _&lt;br&gt;
    &quot;ACTUALNUMBER, CHOSENNUMBER, TIMEOUT, &quot; &amp; _&lt;br&gt;
    &quot;DIFFERENCE, SURNAME) &quot; &amp; _&lt;br&gt;
    &quot;VALUES (&#039;&quot; &amp; [A2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [B2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [C2].Text &amp; _&lt;br&gt;
    &quot;&#039;,&#039;&quot; &amp; [D2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [E2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [F2].Text &amp; _&lt;br&gt;
    &quot;&#039;,&#039;&quot; &amp; [G2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [H2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [I2].Text &amp; _&lt;br&gt;
    &quot;&#039;,&#039;&quot; &amp; [J2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [K2].Text &amp; &quot;&#039;,&#039;&quot; &amp; [L2].Text &amp; &quot;&#039;)&lt;/p&gt;
&lt;p&gt;Of course I&#039;ll replace the &quot;[]&quot; with &quot;Cells(i, x)&quot;.  I&#039;ll try them both when I get back to work.  Happy Holidays!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Ron.  I was also thinking of looping this SQL:</p>
<p>sSQL = &#8220;INSERT INTO Store (TIMEIN, MYDATE, MYSESSION, MANAGER, &#8221; &amp; _<br />
    &#8220;LEADNUMBER, CONSULTANT, PRIZE, &#8221; &amp; _<br />
    &#8220;ACTUALNUMBER, CHOSENNUMBER, TIMEOUT, &#8221; &amp; _<br />
    &#8220;DIFFERENCE, SURNAME) &#8221; &amp; _<br />
    &#8220;VALUES (&#8216;&#8221; &amp; [A2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [B2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [C2].Text &amp; _<br />
    &#8220;&#8216;,&#8217;&#8221; &amp; [D2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [E2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [F2].Text &amp; _<br />
    &#8220;&#8216;,&#8217;&#8221; &amp; [G2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [H2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [I2].Text &amp; _<br />
    &#8220;&#8216;,&#8217;&#8221; &amp; [J2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [K2].Text &amp; &#8220;&#8216;,&#8217;&#8221; &amp; [L2].Text &amp; &#8220;&#8216;)</p>
<p>Of course I&#8217;ll replace the &#8220;[]&#8221; with &#8220;Cells(i, x)&#8221;.  I&#8217;ll try them both when I get back to work.  Happy Holidays!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron de Bruin</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29587</link>
		<dc:creator>Ron de Bruin</dc:creator>
		<pubDate>Mon, 24 Dec 2007 16:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29587</guid>
		<description>&lt;p&gt;Hi MacroMan&lt;/p&gt;
&lt;p&gt;Never try this with a closed Excel workbook&lt;br&gt;
Maybe Ole have something for you on his site&lt;br&gt;
&lt;a href=&quot;http://www.erlandsendata.no/english/index.php?t=envbadac&quot; rel=&quot;nofollow&quot;&gt;http://www.erlandsendata.no/english/index.php?t=envbadac&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi MacroMan</p>
<p>Never try this with a closed Excel workbook<br />
Maybe Ole have something for you on his site<br />
<a href="http://www.erlandsendata.no/english/index.php?t=envbadac" rel="nofollow">http://www.erlandsendata.no/english/index.php?t=envbadac</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MacroMan</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/12/23/page-update-copy-a-range-from-closed-workbooks-ado/#comment-29583</link>
		<dc:creator>MacroMan</dc:creator>
		<pubDate>Mon, 24 Dec 2007 07:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1786#comment-29583</guid>
		<description>&lt;p&gt;Anyone know how to import data from a closed Excel workbook into an Access table, both having the same fields, with SQL/ADO?  Something with INSERT/SELECT?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Anyone know how to import data from a closed Excel workbook into an Access table, both having the same fields, with SQL/ADO?  Something with INSERT/SELECT?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

