Bonjour le forum,
Quand je mets dans la propriété de la combobox a sytle: fmStyleDropList
il plante a:
Private Sub ComboBox1_Change()
ActiveSheet.Unprotect "Elisa1995"
Set D1 = CreateObject("Scripting.Dictionary")
X = Replace(Replace(Me.ComboBox1, ".", ""), " ", "")
tmp = "*"
For i = 1 To Len(X): tmp = tmp & Mid(X, i, 1) & "*": Next i
tmp = UCase(tmp)
For Each c In a
tmp2 = "*"
X = c
For i = 1 To Len(c): tmp2 = tmp2 & Mid(X, i, 1) & "*": Next i
'Stop
If UCase(tmp2) Like tmp Then D1(c) = ""
Next c
Me.ComboBox1.List = D1.keys ici ça plante et surligne cette ligne!
Me.ComboBox1.DropDown
End Sub
Quelqu'un pourrait m'aider svp?
D'avance merci et bon week end