ShutterAce
New Member
- Joined
- Nov 29, 2011
- Messages
- 15
Hello,
Any ideas as to why this will not run. I've been playing with it all day and can't figure out why it stops after the If statement is evaluated.
I'd bet money it's something minute I'm overlooking but I can't find it. I have changed everything I can think of in the two statements regarding the locking of the cells with no change in behavior.
Thank you!
Any ideas as to why this will not run. I've been playing with it all day and can't figure out why it stops after the If statement is evaluated.
I'd bet money it's something minute I'm overlooking but I can't find it. I have changed everything I can think of in the two statements regarding the locking of the cells with no change in behavior.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveWorkbook.Sheets("Measure_Cut").Range("E3").Text = "0" Then
ActiveWorkbook.Sheets("Notching").Range("E16:E18").Locked = False
Else
ActiveWorkbook.Sheets("Notching").Range("E16:E18").Locked = True
End If
End Sub
Thank you!