<?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 Hello,
 
Please try
range… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/RemoveDuplicates-Excel-VBO-help/m-p/65779#M18384</link>
    <description>Hello,
&amp;nbsp;
Please try
range.RemoveDuplicates Columns:=Array(1, 2), Header:=1
&amp;nbsp;
Joshua</description>
    <pubDate>Thu, 10 Jan 2019 18:03:00 GMT</pubDate>
    <dc:creator>JoshuaKingsley</dc:creator>
    <dc:date>2019-01-10T18:03:00Z</dc:date>
    <item>
      <title>RemoveDuplicates Excel VBO help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/RemoveDuplicates-Excel-VBO-help/m-p/65778#M18383</link>
      <description>Hi everyone.

I am trying to create RemoveDuplicates Excel VBO and having troubles with the code

&amp;nbsp;

-------------------------------------------------

Dim wb, ws As Object

Dim excel, sheet, range As Object

&amp;nbsp;

Try

&amp;nbsp;

wb = GetWorkbook(Handle, Workbook)

ws = GetWorksheet(Handle, Workbook, Worksheet)

&amp;nbsp;

wb.Activate()

ws.Activate()

excel = ws.Application

sheet = excel.ActiveSheet

range = sheet.Range(Reference)

&amp;nbsp;

range.RemoveDuplicates(Columns:=Array(1, 2), Header:=1)

&amp;nbsp;

Success = True

&amp;nbsp;

Catch e As Exception

Success = False

Message = e.Message

Finally

wb = Nothing

ws = Nothing

excel = Nothing

sheet = Nothing

range = Nothing

End Try

---------------------

&amp;nbsp;

I get an error on "Array(1,2)", description saying compiler error.

If anyone could provide advice, I would be really grateful.

&amp;nbsp;

Thanks.</description>
      <pubDate>Thu, 10 Jan 2019 06:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/RemoveDuplicates-Excel-VBO-help/m-p/65778#M18383</guid>
      <dc:creator>KoogunNa</dc:creator>
      <dc:date>2019-01-10T06:23:00Z</dc:date>
    </item>
    <item>
      <title>Hello,
 
Please try
range…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/RemoveDuplicates-Excel-VBO-help/m-p/65779#M18384</link>
      <description>Hello,
&amp;nbsp;
Please try
range.RemoveDuplicates Columns:=Array(1, 2), Header:=1
&amp;nbsp;
Joshua</description>
      <pubDate>Thu, 10 Jan 2019 18:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/RemoveDuplicates-Excel-VBO-help/m-p/65779#M18384</guid>
      <dc:creator>JoshuaKingsley</dc:creator>
      <dc:date>2019-01-10T18:03:00Z</dc:date>
    </item>
    <item>
      <title>Hi Joshua,
I think Blueprism…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/RemoveDuplicates-Excel-VBO-help/m-p/65780#M18385</link>
      <description>Hi Joshua,
I think Blueprism&amp;nbsp;can not be able to deal with this code.
&amp;nbsp;
Does anyone know how to deal with the Array? Datatype:String can not be converted to Array in blueprism.
&amp;nbsp;
Tsai</description>
      <pubDate>Thu, 24 Jan 2019 09:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/RemoveDuplicates-Excel-VBO-help/m-p/65780#M18385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-24T09:28:00Z</dc:date>
    </item>
  </channel>
</rss>

