For the future, please upload just a part of the Sheet that explains the problem.
Next: Keep in mind that working with excel should be fun and intuitive.
For the code you require:
Sub ProtectSht(Ws As Worksheet)
Dim DateRng As Range, Ccell As Range
Ws.Unprotect "a"
Set DateRng = Range(Range("A1"), Range("A65536").End(xlUp))
DateRng.EntireRow.Locked = True 'All Locked
For Each Ccell In DateRng
If Format(Ccell.Value, "dd/mm/yy") = Format(Now(), "dd/mm/yy") Then
Ccell.EntireRow.Locked = False
End If
Next
ActiveSheet.EnableSelection = xlUnlockedCells
Ws.Protect "a"
End Sub
This code can be called on activation.
Private Sub Worksheet_Activate()
Call Module1.ProtectSht
End Sub
Bookmarks