<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Excel Object Failing with 64 bit Office in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-Object-Failing-with-64-bit-Office/m-p/87271#M38006</link>
    <description>&lt;DIV&gt;We have used the VB code below to count the number of rows in an excel file for years using Blue Prism and 32 bit office products and its worked reliably. Our company is upgrading to 64bit Office and we are doing regression testing of all Blue Prism processes and now are getting inaccurate results with the Excel Object Action. All other excel actions are working as expected in 64 bit Office, only the Get Number of Rows action is failing. Its not giving an error, its giving the output as 1 even though there is more than 1 row filled out in the spreadsheet. We are on Blue Prism 7.1.2v&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;In the example file attached, the object is giving 1 row as its output when we would expect 3&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Is there another method you suggest that would give the output as the number of rows in a excel file that have data in them that is compatible with 64 bit Office?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;rowcount = GetWorksheet(handle,workbookname,worksheetname).Cells.Find("*", , , , , 2).Row&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shannon Berlin&lt;BR /&gt;Business Process Specialist&lt;BR /&gt;Chesapeake Energy&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Jan 2024 16:29:00 GMT</pubDate>
    <dc:creator>sbass2</dc:creator>
    <dc:date>2024-01-19T16:29:00Z</dc:date>
    <item>
      <title>Excel Object Failing with 64 bit Office</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Object-Failing-with-64-bit-Office/m-p/87271#M38006</link>
      <description>&lt;DIV&gt;We have used the VB code below to count the number of rows in an excel file for years using Blue Prism and 32 bit office products and its worked reliably. Our company is upgrading to 64bit Office and we are doing regression testing of all Blue Prism processes and now are getting inaccurate results with the Excel Object Action. All other excel actions are working as expected in 64 bit Office, only the Get Number of Rows action is failing. Its not giving an error, its giving the output as 1 even though there is more than 1 row filled out in the spreadsheet. We are on Blue Prism 7.1.2v&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;In the example file attached, the object is giving 1 row as its output when we would expect 3&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Is there another method you suggest that would give the output as the number of rows in a excel file that have data in them that is compatible with 64 bit Office?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;rowcount = GetWorksheet(handle,workbookname,worksheetname).Cells.Find("*", , , , , 2).Row&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shannon Berlin&lt;BR /&gt;Business Process Specialist&lt;BR /&gt;Chesapeake Energy&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2024 16:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Object-Failing-with-64-bit-Office/m-p/87271#M38006</guid>
      <dc:creator>sbass2</dc:creator>
      <dc:date>2024-01-19T16:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Object Failing with 64 bit Office</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Object-Failing-with-64-bit-Office/m-p/87272#M38007</link>
      <description>&lt;P&gt;This is the infamous action with the Blue Prism description "Actually, I've no idea whatsoever what this does."&lt;BR /&gt;We recently noticed this action was not always returning the correct value, and replaced the code with the following:&lt;/P&gt;
&lt;P&gt;Dim row1 as Long, row2 as Long&lt;BR /&gt;row1 = GetWorksheet(handle,workbookname,worksheetname).Cells.Find("*", , , , , 2).Row&lt;BR /&gt;row2 = GetWorksheet(handle,workbookname,worksheetname).Cells.Find("*", , , , , 1).Row&lt;BR /&gt;If row1 &amp;gt;= row2 Then&lt;BR /&gt;&amp;nbsp; rowcount = row1&lt;BR /&gt;Else&lt;BR /&gt;&amp;nbsp; rowcount = row2&lt;BR /&gt;End If&lt;/P&gt;
&lt;P&gt;Now it executes a .Find by columns, then again by rows, and returns the highest row number found. It's giving the correct last row used value now.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Hutch&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Thomas Hutchins&lt;BR /&gt;Lead Developer&lt;BR /&gt;Discover&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jan 2024 14:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Object-Failing-with-64-bit-Office/m-p/87272#M38007</guid>
      <dc:creator>ThomasHutchins</dc:creator>
      <dc:date>2024-01-22T14:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Object Failing with 64 bit Office</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Object-Failing-with-64-bit-Office/m-p/87273#M38008</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/484"&gt;@sbass2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;To get a count of the used rows, try this:&lt;/P&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;rowcount = GetWorksheet(handle,workbookname,worksheetname).UsedRange.Rows.Count&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cheers,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jan 2024 20:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Object-Failing-with-64-bit-Office/m-p/87273#M38008</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2024-01-23T20:16:00Z</dc:date>
    </item>
  </channel>
</rss>

