Une petite question sur le code. Si je veux que ton code s'applique UNIQUEMENT à une date saisie dans "S" comment je peux modifier dans ligne de code :
Sub VerrouillerSiDatées()
For i = 3 To Range("J" & Rows.Count).End(xlUp).Row
If Range("S" & i) <> "" Then
Range("K" & i & ":Q" & i).Locked = True
Range("K" & i & ":Q" & i).FormulaHidden = False
Range("A" & i & ":U" & i).Interior.Color = RGB(216, 228, 188)
Else
Range("K" & i & ":Q" & i).Locked = False
End If
Next i
End Sub
par une qui ressemblerait à
Sub VerrouillerSiDatées()
For i = 3 To Range("J" & Rows.Count).End(xlUp).Row
If Range("S" & i) = DATE Then
Range("K" & i & ":Q" & i).Locked = True
Range("K" & i & ":Q" & i).FormulaHidden = False
Range("A" & i & ":U" & i).Interior.Color = RGB(216, 228, 188)
Else
Range("K" & i & ":Q" & i).Locked = False
End If
Next i
End Sub
Cordialement