Bonjour,
Je souhaite empêcher la suppression de mes listes déroulantes sur une feuille protégée.
J'ai trouvé ce programme mais il fonctionne uniquement pour une seule liste déroulante :
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$H$19" Then Exit Sub
If Target = "" Then Application.Undo
End Sub
J'ai besoin de protéger plusieurs listes déroulantes sur une même feuille.
j'ai essayé sans succès de modifier ce programme :
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$H$19" Then Exit Sub
If Target = "" Then Application.Undo
If Target.Address <> "$E$31" Then Exit Sub
If Target = "" Then Application.Undo
If Target.Address <> "$E$35" Then Exit Sub
If Target = "" Then Application.Undo
If Target.Address <> "$L$8" Then Exit Sub
If Target = "" Then Application.Undo
If Target.Address <> "$O$15" Then Exit Sub
If Target = "" Then Application.Undo
If Target.Address <> "$P$15" Then Exit Sub
If Target = "" Then Application.Undo
If Target.Address <> "$P$20" Then Exit Sub
If Target = "" Then Application.Undo
End Sub
Pourriez-vous m'aider svp ?
Jonathan