r,
Try adding the following line just above "End If"...
ActiveCell.Select
Jim Cone
San Francisco, USA
"retseort"
wrote in message
Ok I did get something to work. Using the Control toolbar I inserted a
check box and altered the code as follows
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
ActiveSheet.Protect
ElseIf CheckBox1.Value = False Then
ActiveSheet.Unprotect
End If
End Sub
The issue is that once I use it it will protect and unprotect but not
all of the excel capabilities will activate when the sheet is
unprotected.
For example once I click on the check box as unchecked I can delete
formulas in cells and so on but the formating buttons at the top of the
screen will no longer work. They are greyed out. So basically once the
spreadsheet is unprotected I only get partial formatting capabilities
back.
retseort
|