Place le code suivant:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column = 3 Then
Target.Offset(0, -2) = Date
Target.Offset(0, -1) = Format(Time, "h:m:s")
End If
ActiveSheet.Unprotect
For i = 2 To 40
If Cells(i, 5).Value = "" Then
Cells(i, 4).Locked = True
Else: Cells(i, 4).Locked = False
End If
Next
ActiveSheet.Protect
End Sub
Ca devrait fonctionner =)
Dovidus
PJ: doc modifié