Private Sub ComboVille_Change()
If Me.ComboVille.ListIndex = -1 And IsError(Application.Match(Me.ComboVille, ChoixVille, 0)) Then
Set d1 = CreateObject("Scripting.Dictionary")
tmp = UCase(Me.ComboVille) & "*"
For Each C In ChoixVille
If C Like tmp Then d1(C) = ""
Next C
Me.ComboVille.List = d1.keys
Me.ComboVille.DropDown
Else
p = Application.Match(Me.ComboVille, ChoixVille, 0)
Me.TextBox18 = Range("CodePostal")(p)
End If
End Sub
Sub AfficherTout()
TextBox1 = "µ": TextBox1 = "": TextBox2 = ""
End Sub
Private Sub UserForm_QueryClose(cancel As Integer, closemode As Integer)
Feuil2.Cells.Clear
End Sub