This functions input is an range and the output are an array of row numbers, it only returns those rows which has same value two or more times, aka duplicates + 1 occurrence.
As a one dimensional array it works fine, but I also want to add how many occurrence there are for each row, so i'm trying to transform the script to a dynamic two dimensional array (tempArray2).
But I can't get it work. I read somewhere that it's only possible to redim the last dimension, therefore "ReDim Preserve tempArray2(t)".
I get "subscript out of range" on row 12. Any pointers? Is it even possible?
Bookmarks