Private Sub Worksheet_Change(ByVal Target As Range)
Me.Unprotect "MyPass" 'Delete this last bit if no password used
Target.Locked = True
Me.Protect "MyPass" 'Delete this last bit if no password used
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("E12"), Target) Is Nothing Then
If Not IsEmpty(Target.Value) Then
Me.Protect
End If
End If
End Sub