Sub TriSansDoublon(ByVal MaPlage As Range, CelluleDest As Range)
Set MonDico = CreateObject("Scripting.Dictionary")
For Each Cellule In MaPlage.Cells
MonDico.Item(Cellule.Value) = Cellule
Next
If MonDico.Count > 0 Then
DicoTempo = MonDico.Items
Call TriAlpha(DicoTempo, LBound(DicoTempo), UBound(DicoTempo))
End If
CelluleDest.Resize(, UBound(DicoTempo)).Value = DicoTempo
End Sub
Public Sub TriAlpha(a, gauc, droi)
Dim ref As String
Dim g As Double
Dim d As Double
Dim temp As String
ref = a((gauc + droi) \ 2)
g = gauc: d = droi
Do
Do While a(g) < ref: g = g + 1: Loop
Do While ref < a(d): d = d - 1: Loop
If g <= d Then
temp = a(g): a(g) = a(d): a(d) = temp
g = g + 1: d = d - 1
End If
Loop While g <= d
If g < droi Then Call TriAlpha(a, g, droi)
If gauc < d Then Call TriAlpha(a, gauc, d)
End Sub