Hi,
I have this code :
Dim ws, excel,sheet As Object
ws = GetWorksheet(Handle, Workbook, Worksheet)
ws.Activate()
excel = ws.Application
sheet = excel.ActiveSheet
ws.Range([range]).RemoveDuplicates(Columns :=Array(1,1), Header:=[Header])
input :range - string (ex:"B:B")
input :Header- flag(ex:"True")
input : Columns - ???
This code implement in Excel vbo RemoveDuplicates function of Excel.
But I need help because I do not understand how to pass the argument Array (x, x) in bluePrism!? How should I declare it? Knowing that this argument Array must be dynamic. If I put the function in a vba excel, it runs correctly. Here I have the following error at compile: 'Array' is a type and can not be used as an expression. if I replace with a "string", it does not work
Bonus question (still in Excel VBO): how to do when you have a function that can take optional arguments to pass empty values? for example in the function:
ws.Range([range]).TextToColumns(Destination :=destinationRange, _
DataType :=[DataType], _
TextQualifier :=[TextQualifier], _
ConsecutiveDelimiter :=[ConsecutiveDelimiter], _
Tab :=[Tab], _
Semicolon :=[Semicolon], _
Comma :=[Comma], _
Space :=[Space], _
Other :=[Other], _
OtherChar :=[OtherChar], _
FieldInfo :=[FieldInfo], _
TrailingMinusNumbers :=[TrailingMinusNumbers])
Can become: .TextToColumns( "A:A", 2, 4, , , , , True, , , , , , )
I dont find the way in bluePrism to pass him the null arguments! An idea ?