Private Sub Worksheet_Change(ByVal Cible As Range)
If Not Intersect(Cible, [D2].Cells) Is Nothing Then
Me.Unprotect
If Cible.Value = "H" Then
Range("D15:D18,D5:D9").Locked = True
Else
Range("D15:D18,D5:D9").Locked = False
End If
If Cible.Value = "F" Then
Range("D19,D10:D14").Locked = True
Else
Range("D19,D10:D14").Locked = False
End If
Me.Protect
End If
End Sub