Dim MyCollection As VBA.Collection
Set MyCollection = New VBA.Collection
For i = MyCollection.Count To 1 Step -1
For j = (i - 1) To 1 Step -1
If MyCollection(i) = MyCollection(j) Then
MyCollection.Remove i
Exit For
End If
Next j
Next i
There are currently 8000 e-mail entries in MyCollection. I would like to remove redundant elements from this large list, but faster.
How can I accelerate this code?