<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Can I Determine the Last Row in an Excel Spreadsheet?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/02/15/how-can-i-determine-the-last-row-in-an-excel-spreadsheet.aspx</link><description>Hey, Scripting Guy! How can I determine the last row in an Excel spreadsheet? I can’t append data to the file unless I know which row to start with. -- TGW 
 Hey, TGW. You know, this is the kind of thing that separates the Scripting Guys from the rest</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Determine the Last Row in an Excel Spreadsheet?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/02/15/how-can-i-determine-the-last-row-in-an-excel-spreadsheet.aspx#3447415</link><pubDate>Tue, 16 Aug 2011 16:18:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3447415</guid><dc:creator>Jeri Bergman</dc:creator><description>&lt;p&gt;for some reason, &amp;nbsp;when I use QTP, I get the error message: &amp;quot;Unable to get the SpecialCells property of the Range Class&amp;quot; when trying your code. Here is the code:&lt;/p&gt;
&lt;p&gt;Set objExcelSheet &amp;nbsp;=objExcel.Worksheets(1)&lt;/p&gt;
&lt;p&gt;objExcelSheet.Activate&lt;/p&gt;
&lt;p&gt;Set objRange = objExcelSheet.UsedRange&lt;/p&gt;
&lt;p&gt;objRange.SpecialCells(xlCellTypeLastCell).Activate&lt;/p&gt;
&lt;p&gt;Any ideas why?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3447415" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the Last Row in an Excel Spreadsheet?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/02/15/how-can-i-determine-the-last-row-in-an-excel-spreadsheet.aspx#3432124</link><pubDate>Fri, 27 May 2011 18:42:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3432124</guid><dc:creator>JV</dc:creator><description>&lt;p&gt;‘brem’ and anyone else looking for help writing scripts.&lt;/p&gt;
&lt;p&gt;This is a blog and not really intended as customer support or scripting help. &amp;nbsp;The authors are more valuable writing well thought out blog entries.&lt;/p&gt;
&lt;p&gt;If you need help try any of a number of scripting forums set up for answering these kinds of questions.&lt;/p&gt;
&lt;p&gt;Here is a link to one of them: &lt;a rel="nofollow" target="_new" href="http://www.scriptinganswers.com"&gt;www.scriptinganswers.com&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3432124" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the Last Row in an Excel Spreadsheet?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/02/15/how-can-i-determine-the-last-row-in-an-excel-spreadsheet.aspx#3432105</link><pubDate>Fri, 27 May 2011 16:55:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3432105</guid><dc:creator>Prem</dc:creator><description>&lt;p&gt;Can you please get us the VBA script, to find the data of the last row in an new sheet.&lt;/p&gt;
&lt;p&gt;And this should work for at least 10 different rows (Desired rows)&lt;/p&gt;
&lt;p&gt;I would be very grateful to you...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Prem&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3432105" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the Last Row in an Excel Spreadsheet?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/02/15/how-can-i-determine-the-last-row-in-an-excel-spreadsheet.aspx#3358725</link><pubDate>Wed, 29 Sep 2010 14:57:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3358725</guid><dc:creator>Brian Franklin</dc:creator><description>&lt;p&gt;This is a great addition to my &amp;quot;monkey code&amp;quot; that I am doing after exporting data from Reporting Services and then combining worksheets to one Excel workbook. Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3358725" width="1" height="1"&gt;</description></item></channel></rss>