<?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 Anyone know how the MS Excel VBO - Extended::Remove Duplicates object works? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98954#M46602</link>
    <description>&lt;P&gt;All I get is: "The parameter is incorrect" (see attachment)&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;handle: [Boris]&lt;/P&gt;
&lt;P&gt;Workbook name: [Duplicates File]&lt;/P&gt;
&lt;P&gt;Worksheet name: "Sheet1"&lt;/P&gt;
&lt;P&gt;Range: "A1:C10"&lt;/P&gt;
&lt;P&gt;Column Indexes: "0,1,2"&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 23:01:12 GMT</pubDate>
    <dc:creator>JeremyRTDean</dc:creator>
    <dc:date>2024-01-11T23:01:12Z</dc:date>
    <item>
      <title>Anyone know how the MS Excel VBO - Extended::Remove Duplicates object works?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98954#M46602</link>
      <description>&lt;P&gt;All I get is: "The parameter is incorrect" (see attachment)&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;handle: [Boris]&lt;/P&gt;
&lt;P&gt;Workbook name: [Duplicates File]&lt;/P&gt;
&lt;P&gt;Worksheet name: "Sheet1"&lt;/P&gt;
&lt;P&gt;Range: "A1:C10"&lt;/P&gt;
&lt;P&gt;Column Indexes: "0,1,2"&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 23:01:12 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98954#M46602</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2024-01-11T23:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know how the MS Excel VBO - Extended::Remove Duplicates object works?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98955#M46603</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;We don't seem to have that action in that object, so I cannot test this situation for you.&lt;/P&gt;
&lt;P&gt;But, usually you get better info on what is going wrong if you step into the object and check the data items there. Also, you may get error data in the object that doesn't make it back to where your process called the object.&lt;/P&gt;
&lt;P&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 12:05:12 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98955#M46603</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2024-01-15T12:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know how the MS Excel VBO - Extended::Remove Duplicates object works?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98956#M46604</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="b7cc724a-cb19-4776-8900-9ab6d2595268" data-tag-text="@Jeremy Dean" href="https://community.blueprism.com/network/profile?UserKey=b7cc724a-cb19-4776-8900-9ab6d2595268" data-itemmentionkey="0bbd2b6e-a7f8-47c1-8fe6-4472a2e087ba"&gt;@Jeremy Dean&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I know that Excel's array indexing is 1-based so you could try "1,2,3" and see if that works for you.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 13:40:25 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98956#M46604</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2024-01-15T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know how the MS Excel VBO - Extended::Remove Duplicates object works?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98957#M46605</link>
      <description>&lt;P&gt;I had tried "1,2,3" and a few other variations to no avail.&amp;nbsp; Rather than try to unpick the object I used 'SPGMI Collection Manipulation Booster' from the Digital Exchange.&amp;nbsp; 'Remove Duplicate Rows' from a Collection worked perfectly.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 19:22:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98957#M46605</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2024-01-15T19:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know how the MS Excel VBO - Extended::Remove Duplicates object works?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98958#M46606</link>
      <description>&lt;P&gt;I remember having to deal with this shortcoming.&lt;/P&gt;
&lt;P&gt;A rare case of the Excel Object model code not being implemented correctly outside of VBA - the VBA equivalent works fine.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;The array is not being passed properly as a parameter, so we have to create it on the fly by transforming into an Array from a List (other other suitable Enumerable)&lt;/P&gt;
&lt;P&gt;columnIndices is a text that has the comma-separated columns that determine duplicate status, e.g. "3", "1,2"&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Dim ws As Object = GetWorksheet(handle, workbookname, worksheetname)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dim r As Object = ws.Range(cellref)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dim cr As Object 'Range --&amp;gt; CurrentRegion&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;If r.Cells.CountLarge &amp;gt; 1 Then&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; cr = r&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Else&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; cr = r.CurrentRegion&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;End If&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;success = False&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;message = ""&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Dim columnIndicesLst As List(Of Object) = New List(Of Object)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; For Each index In columnIndices.Split(","c)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;columnIndicesLst.Add(Trim(index))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Next index&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'After building a List of the columns (as Objects as per the spec), we transform to the necessary array&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; cr.RemoveDuplicates(columnIndicesLst.ToArray(), IIf(isHeader, 1, 2))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; success = True&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Catch ex As Exception&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; success = False&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; message = ex.ToString()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;End Try&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jan 2024 21:32:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Anyone-know-how-the-MS-Excel-VBO-Extended-Remove-Duplicates/m-p/98958#M46606</guid>
      <dc:creator>Anton__Hosang</dc:creator>
      <dc:date>2024-01-24T21:32:23Z</dc:date>
    </item>
  </channel>
</rss>

