If Range("A1").Value = DEP1 Then 'A1 est la cellule ou s'affiche le departement (liste que tu as créer)
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$B$6:$B$23" 'ici la colone du departemnt 1
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
ElseIf Range("A1").Value = DEP2 Then 'A1 est la cellule ou s'affiche le departement (liste que tu as créer
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$C$6:$C$23" 'ici la colone du departemnt 2
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
ElseIf Range("A1").Value = DEP3 Then 'A1 est la cellule ou s'affiche le departement (liste que tu as créer)
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$D$6:$D$23" 'ici la colone du departemnt 3
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
ElseIf Range("A1").Value = DEP4 Then 'A1 est la cellule ou s'affiche le departement (liste que tu as créer)
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$E$6:$E$23" 'ici la colone du departemnt 4
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End If
End sub