Re
Cela fait parti de
Private Sub OptionButton1_Click()
titre = "DI": AlimComboBox
End Sub
Private Sub OptionButton2_Click()
titre = "Libell?": AlimComboBox
End Sub
Sub AlimComboBox()
With Sheets("DI")
col = Application.Match(titre, f.[A1:I1], 0)
If IsError(col) Then Exit Sub
Set mondico = CreateObject("Scripting.Dictionary")
mondico.CompareMode = vbTextCompare
a = Application.Transpose(f.Cells(2, col).Resize(f.Cells(65000, col).End(xlUp).Row).Value)
For i = LBound(a) To UBound(a)
If a(i) <> "" Then
b = Split(a(i), ",")
For j = LBound(b) To UBound(b)
mondico(b(j)) = ""
Next j
End If
Next i
choix1 = mondico.keys
Call Tri(choix1, LBound(choix1), UBound(choix1))
Me.ComboBox6.ListIndex = -1
Me.ComboBox6.List = choix1
Me.ComboBox6.SetFocus
End With
End Sub
Private Sub ComboBox6_Change()
If Me.ComboBox6.ListIndex = -1 And IsError(Application.Match(Me.ComboBox6, choix1, 0)) Then
Me.ComboBox6.List = Filter(choix1, Me.ComboBox6.Text, True, vbTextCompare)
Me.ComboBox6.DropDown
Else
ComboBox6_click
End If
End Sub