Welcome to the forum!
Change the password to suit. Right click the sheet's tab, View Code, and paste. I normally put the Protection code in thisworkbook's Open event so code can do this sort of thing.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Range, o As Range, v As Long
Set o = Intersect(Target, Columns("O:O"))
With Target
If .Row = 1 Or .Cells.Count > 1 Or o Is Nothing Then Exit Sub
ActiveSheet.Protect "ken", UserInterfaceOnly:=True
v = .Row
Set r = Range("F" & v & "," & "G" & v & "," & "K" & v & "," & "M" & v)
r.Locked = False
If LCase(.Value2) = "closed" Then r.Locked = True
End With
End Sub
Bookmarks