<?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 Hi Denis,… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Help-with-code-stage-to-find-value-from-Excel-column-exact-match/m-p/72639#M25244</link>
    <description>Hi Denis,
Thanks for a tip! I am not familiar with OLEDB so&amp;nbsp;I have to&amp;nbsp;study that and see if that would be a&amp;nbsp;good option to handle massive Excels in the future. Still I´d like to find&amp;nbsp;solution to my code problem because otherwise&amp;nbsp;this code works&amp;nbsp;very&amp;nbsp;well.
&amp;nbsp;
Br,
&amp;nbsp;
Jari</description>
    <pubDate>Thu, 08 Mar 2018 18:25:00 GMT</pubDate>
    <dc:creator>JariKorkkinen</dc:creator>
    <dc:date>2018-03-08T18:25:00Z</dc:date>
    <item>
      <title>Help with code stage to find value from Excel column (exact match)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Help-with-code-stage-to-find-value-from-Excel-column-exact-match/m-p/72637#M25242</link>
      <description>Hello,

I have a process where I have to find certain value from Excel sheet´s column, select the cell and write data to that row. Worksheets are very large (tens of thousands rows) and it would be too slow to achieve this with BluePrism´s standard Excel VBO actions so&amp;nbsp;I have created a new action for search.

This works well except this returns also partial matches.&amp;nbsp; Eg. If I search 12345, this considers 1234567 as a match which is wrong.

Here is the code [inputs CTS = column to search (number), FIND = value that is searched (text)]:

--------------------------------

Dim worksheet As Object

Try

worksheet = GetWorkbook(handle,Nothing).ActiveSheet

worksheet.Columns(CTS).Find(FIND).Select

Success = True

Catch e As Exception

Success = False

End Try

----------------------------------

I tried to alter code to return exact matches only but this didn´t work.&amp;nbsp;This doesn´t find anything.

&amp;nbsp;

Dim Excel As Object

Dim worksheet As Object

Dim wb As Object

&amp;nbsp;

Try

wb = GetWorkbook(handle, nothing)

worksheet = GetWorkbook(handle, nothing).ActiveSheet

Excel = wb.Application

&amp;nbsp;

worksheet.Columns(CTS).Find(what:=FIND, LookAt:=Excel.xlWhole).Select

&amp;nbsp;

Success = True

Catch e as Exception

Success = False

&amp;nbsp;

End Try

-------------------------------------

Would here be a&amp;nbsp;vb.net wizard who could see what is wrong in the code and help how to get this working correctly?

&amp;nbsp;

Br,

Jari</description>
      <pubDate>Thu, 08 Mar 2018 14:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Help-with-code-stage-to-find-value-from-Excel-column-exact-match/m-p/72637#M25242</guid>
      <dc:creator>JariKorkkinen</dc:creator>
      <dc:date>2018-03-08T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Have you tried using the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Help-with-code-stage-to-find-value-from-Excel-column-exact-match/m-p/72638#M25243</link>
      <description>Have you tried using the OLDEB VBO to access and manipulate your Excel workbook using SQL?</description>
      <pubDate>Thu, 08 Mar 2018 17:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Help-with-code-stage-to-find-value-from-Excel-column-exact-match/m-p/72638#M25243</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2018-03-08T17:47:00Z</dc:date>
    </item>
    <item>
      <title>Hi Denis,…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Help-with-code-stage-to-find-value-from-Excel-column-exact-match/m-p/72639#M25244</link>
      <description>Hi Denis,
Thanks for a tip! I am not familiar with OLEDB so&amp;nbsp;I have to&amp;nbsp;study that and see if that would be a&amp;nbsp;good option to handle massive Excels in the future. Still I´d like to find&amp;nbsp;solution to my code problem because otherwise&amp;nbsp;this code works&amp;nbsp;very&amp;nbsp;well.
&amp;nbsp;
Br,
&amp;nbsp;
Jari</description>
      <pubDate>Thu, 08 Mar 2018 18:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Help-with-code-stage-to-find-value-from-Excel-column-exact-match/m-p/72639#M25244</guid>
      <dc:creator>JariKorkkinen</dc:creator>
      <dc:date>2018-03-08T18:25:00Z</dc:date>
    </item>
  </channel>
</rss>

