Ok I'm using Excel '97 & I've got a spreadsheet that is filled out by means of a form dialogue. Now after the user has finished with the form entries are placed in the spreadsheet. I need to lock some of the cell that have been entered & leave others free for editing manually
I was trying to do this:
Private Sub AddNewLine_Click()
Worksheets("List"
.Unprotect
UserForm1.Show
Worksheets("List"
.Protect DrawingObjects:=False, Contents:=True, Scenarios:=False
End Sub
& as part of one of the events in the form I've embeded:
range(lock_area).Select
Selection.Locked = True
Selection.FormulaHidden = False
The problem is that the Unprotect method of the worksheet fails, so I acheive nothing!!!!
Any help that you could offer would be muchly appreciated
I was trying to do this:
Private Sub AddNewLine_Click()
Worksheets("List"
UserForm1.Show
Worksheets("List"
End Sub
& as part of one of the events in the form I've embeded:
range(lock_area).Select
Selection.Locked = True
Selection.FormulaHidden = False
The problem is that the Unprotect method of the worksheet fails, so I acheive nothing!!!!
Any help that you could offer would be muchly appreciated