If protected - unprotect your sheet.
Format cells where user can change data as unlocked (so for instance three ranges A12:Z12, A24:Z24, A36:Z36 - change these ranges also in the code below).
Protect your sheet
In sheet code (right click on sheet tab and select "display code"):
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range, wholerange as range
set wholerange = union(Range("A12:Z12"),Range("A24:Z24"),Range("A36:Z36"))
If Not Intersect(Target, wholerange) Is Nothing Then
For Each rng In Intersect(Target, wholerange)
If rng.Offset(-1, 0).Value <> False Then
ActiveSheet.Unprotect "excelforum.com"
rng.Locked = True
ActiveSheet.Protect "excelforum.com", UserInterfaceOnly:=True
End If
Next rng
End If
End Sub
Bookmarks