Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John Walkenbach uses the following code to sort a collection and to
remove duplicates. Can it be modified to set a collection but to leave duplicates ? Thanks. ' Using Walkenbach's NoDupes variable name eventhough duplicates are to be preserved For i = 1 To NoDupes.Count - 1 For j = i + 1 To NoDupes.Count If NoDupes(i) NoDupes(j) Then Swap1 = NoDupes(i) Swap2 = NoDupes(j) NoDupes.Add Swap1, befo=j NoDupes.Add Swap2, befo=i NoDupes.Remove i + 1 NoDupes.Remove j + 1 End If Next j Next i |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete all dulplicate rows leaving no record of the duplicates | Excel Discussion (Misc queries) | |||
Sum Duplicates without Sorting | Excel Worksheet Functions | |||
delete a duplicate in column while leaving other duplicates | Excel Worksheet Functions | |||
Finding Duplicates in a Column (Without Sorting) | Excel Discussion (Misc queries) | |||
When sorting, how would I omit duplicates? | New Users to Excel |