I do not know your knowledge of dictionary object.
If Not .exists(aNum(indx, 3)) Then
test for the existence of key for each column C rows, so it is testing column C for duplicates.
If there are duplicates ,the code then goes in to this line
Else section
It then append column 8 to last column
I have change the above line in to
This is more flexible as you can see that if there is a duplicate, i.e. if the key exists, then it goes in to else section. In the else section, you can see column 8 to last column is included. You can change to what ever column you want.
UBound(aNum, 2)) indicates the upper bound(The last column). You can also change this in to fixed column
Bookmarks