Jazztpt
Vendor
- Feb 16, 2005
- 50
Hi - (Excel 2000) I am trying to lock a range of cells when a checkbox is 'ticked' - I thought this would work, but it doesn't !
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
Range("A1:E4").Locked = True
Else
Range("A1:E4").Locked = False
End If
End Sub
Can anyone tell me what i am doing wrong.
Thanks
Jazztpt
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
Range("A1:E4").Locked = True
Else
Range("A1:E4").Locked = False
End If
End Sub
Can anyone tell me what i am doing wrong.
Thanks
Jazztpt