Sub UniqueSelection()
Dim coll As New Collection
Dim lcount As Long
Dim cell As Range
On Error Resume Next
For Each cell In Selection
coll.Add cell.Value, CStr(cell.Value)
Next cell
'This kills all dups but removes the cells as well
Selection.ClearContents
'This does somthing that I really don't understand
'Selection.Replace What:=cell.Value, Replacement:=Null, LookAt _
':=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
'ReplaceFormat:=False
On Error GoTo 0
lcount = 0
For Each cell In Selection
lcount = lcount + 1
If lcount > coll.Count Then Exit For
cell.Value = coll.Item(lcount)
Next cell
End Sub
Bookmarks