<?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: Methods for Accessing Excel Data</title>
	<atom:link href="http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/</link>
	<description>Mostly tips, tutorials, articles and news about Macro Scheduler &#38; Windows Automation</description>
	<lastBuildDate>Thu, 17 Nov 2011 14:44:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: Marcus Tettmar</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2607</link>
		<dc:creator>Marcus Tettmar</dc:creator>
		<pubDate>Fri, 11 Dec 2009 22:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2607</guid>
		<description>Yes, that&#039;s the way to do it.</description>
		<content:encoded><![CDATA[<p>Yes, that&#8217;s the way to do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Abramson</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2606</link>
		<dc:creator>Carl Abramson</dc:creator>
		<pubDate>Fri, 11 Dec 2009 21:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2606</guid>
		<description>This code seems to work.  Is it the best way?

                Sub GetActiveWorkbook
                    Set xlApp = GetObject(,&quot;Excel.Application&quot;)
                    xlApp.visible = true
                    Set xlBook = xlApp.ActiveWorkbook
                end sub

Thanks,

Carl</description>
		<content:encoded><![CDATA[<p>This code seems to work.  Is it the best way?</p>
<p>                Sub GetActiveWorkbook<br />
                    Set xlApp = GetObject(,&#8221;Excel.Application&#8221;)<br />
                    xlApp.visible = true<br />
                    Set xlBook = xlApp.ActiveWorkbook<br />
                end sub</p>
<p>Thanks,</p>
<p>Carl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Abramson</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2604</link>
		<dc:creator>Carl Abramson</dc:creator>
		<pubDate>Fri, 11 Dec 2009 18:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2604</guid>
		<description>The Excel workbook I want to get information from is already open.

How in VB Script do I reference that already open workbook?  

Thanks.

Carl</description>
		<content:encoded><![CDATA[<p>The Excel workbook I want to get information from is already open.</p>
<p>How in VB Script do I reference that already open workbook?  </p>
<p>Thanks.</p>
<p>Carl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Tettmar</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2390</link>
		<dc:creator>Marcus Tettmar</dc:creator>
		<pubDate>Thu, 30 Jul 2009 08:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2390</guid>
		<description>Worksheets are child objects of workbooks.  So perhaps you mean create rather than open.  To create a new sheet use:

xlBook.Worksheets.Add

(where xlBook is the object reference for your workbook object)

To open another book:

Set xlBook2 = xlApp.Workbooks.open(filename)

xlBook2 is the new book reference and xlApp is the application reference you used in the CreateObject call to open Excel.

To add a new book:

xlApp.Workbooks.Add

For more help with Excel&#039;s objects see:
http://msdn.microsoft.com/en-us/library/wss56bz7(VS.80).aspx</description>
		<content:encoded><![CDATA[<p>Worksheets are child objects of workbooks.  So perhaps you mean create rather than open.  To create a new sheet use:</p>
<p>xlBook.Worksheets.Add</p>
<p>(where xlBook is the object reference for your workbook object)</p>
<p>To open another book:</p>
<p>Set xlBook2 = xlApp.Workbooks.open(filename)</p>
<p>xlBook2 is the new book reference and xlApp is the application reference you used in the CreateObject call to open Excel.</p>
<p>To add a new book:</p>
<p>xlApp.Workbooks.Add</p>
<p>For more help with Excel&#8217;s objects see:<br />
<a href="http://msdn.microsoft.com/en-us/library/wss56bz7(VS.80).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/wss56bz7(VS.80).aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2389</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Wed, 29 Jul 2009 21:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2389</guid>
		<description>Hi,

When using the 3rd method, how could I define another Excel worksheet to be opened and specify one or another, like copying Excel worksheet contents from one to another ?  Could be mentioned some lines of code, to clarify this ?

Tks and regards,
Sven</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>When using the 3rd method, how could I define another Excel worksheet to be opened and specify one or another, like copying Excel worksheet contents from one to another ?  Could be mentioned some lines of code, to clarify this ?</p>
<p>Tks and regards,<br />
Sven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandesh</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2375</link>
		<dc:creator>Sandesh</dc:creator>
		<pubDate>Fri, 10 Jul 2009 10:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2375</guid>
		<description>Thnaks . Its giving an error for this:-
Rows(RowStart &amp; “:” &amp; RowEnd).Select</description>
		<content:encoded><![CDATA[<p>Thnaks . Its giving an error for this:-<br />
Rows(RowStart &amp; “:” &amp; RowEnd).Select</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Tettmar</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2374</link>
		<dc:creator>Marcus Tettmar</dc:creator>
		<pubDate>Fri, 10 Jul 2009 08:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2374</guid>
		<description>Create this sub:

Sub DeleteRows(Sheet,RowStart,RowEnd)
  Dim xlSheet
  Set xlSheet = xlBook.Worksheets(Sheet)
  Rows(RowStart &amp; &quot;:&quot; &amp; RowEnd).Select
  Selection.Delete
End Sub
    
Call it with, e.g.:

VBRun&gt;DeleteRows,Sheet1,2,2</description>
		<content:encoded><![CDATA[<p>Create this sub:</p>
<p>Sub DeleteRows(Sheet,RowStart,RowEnd)<br />
  Dim xlSheet<br />
  Set xlSheet = xlBook.Worksheets(Sheet)<br />
  Rows(RowStart &amp; &#8220;:&#8221; &amp; RowEnd).Select<br />
  Selection.Delete<br />
End Sub</p>
<p>Call it with, e.g.:</p>
<p>VBRun&gt;DeleteRows,Sheet1,2,2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandesh</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-2373</link>
		<dc:creator>Sandesh</dc:creator>
		<pubDate>Fri, 10 Jul 2009 08:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-2373</guid>
		<description>How to delete a Row from Excel Sheet???</description>
		<content:encoded><![CDATA[<p>How to delete a Row from Excel Sheet???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Gilels</title>
		<link>http://www.mjtnet.com/blog/2007/07/02/methods-for-accessing-excel-data/comment-page-1/#comment-1703</link>
		<dc:creator>Jerry Gilels</dc:creator>
		<pubDate>Thu, 08 Nov 2007 17:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2007/07/02/interfacing-with-excel/#comment-1703</guid>
		<description>Excellent.  Clear.  Concise.</description>
		<content:encoded><![CDATA[<p>Excellent.  Clear.  Concise.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

