Bonjour,
Pour remplir les villes en fonction du département :
Private Sub ComboBox3_Click()
Dim Plage As Range
Dim Cel As Range
With Worksheets("Ressources")
Set Plage = .Range(.Cells(2, 4), .Cells(.Rows.Count, 4).End(xlUp))
End With
For Each Cel In Plage
If Left(Cel, 2) = Left(ComboBox3.Text, 2) Then
ComboBox4.AddItem Cel.Value
End If
Next Cel
End Sub
Pour remplir les départements :
Private Sub UserForm_Initialize()
Dim I As Integer
For I = 2 To 97
ComboBox3.AddItem Worksheets("Ressources").Cells(I, 2).Value
Next I
End Sub
Par contre, pour les départements de 1 à 9, c'est 01 jusqu'à 09 sinon, ça ne marche pas !
Hervé.