Anyone know how the MS Excel VBO - Extended::Remove Duplicates object works?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-01-24 11:01 PM
All I get is: "The parameter is incorrect" (see attachment)
handle: [Boris]
Workbook name: [Duplicates File]
Worksheet name: "Sheet1"
Range: "A1:C10"
Column Indexes: "0,1,2"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-01-24 12:05 PM
Hi Jeremy,
We don't seem to have that action in that object, so I cannot test this situation for you.
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.
Happy coding!
Paul
Sweden
Paul, Sweden
(By all means, do not mark this as the best answer!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-01-24 01:40 PM
I know that Excel's array indexing is 1-based so you could try "1,2,3" and see if that works for you.
RBC
Toronto, Ontario
Canada
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-01-24 07:22 PM
I had tried "1,2,3" and a few other variations to no avail. Rather than try to unpick the object I used 'SPGMI Collection Manipulation Booster' from the Digital Exchange. 'Remove Duplicate Rows' from a Collection worked perfectly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-01-24 09:32 PM
I remember having to deal with this shortcoming.
A rare case of the Excel Object model code not being implemented correctly outside of VBA - the VBA equivalent works fine.
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)
columnIndices is a text that has the comma-separated columns that determine duplicate status, e.g. "3", "1,2"
