Hi can anyone help me with this and tell me where i'm going wrong please?
If A24 = "Y" i want D24 to unlock and the same with D25.
This code works on another sheet of mine but not this one, Confused.com. Am I missing something?
note D24 is merged up to G24, could this be the issue?
Thanks if anyone can help me.
Code:
Private Sub Worksheet_Calculate()Me.Unprotect
Range("D24").Locked = Range("A24").Value <> "Y"
Range("D25").Locked = Range("A25").Value <> "Y"
Me.Protect
End Sub
If A24 = "Y" i want D24 to unlock and the same with D25.
This code works on another sheet of mine but not this one, Confused.com. Am I missing something?
note D24 is merged up to G24, could this be the issue?
Thanks if anyone can help me.