Private Sub CommandButton6_Click()
ActiveSheet.Unprotect
Range("d13").Select
End Sub
Private Sub CommandButton7_Click()
Selection.Font.ColorIndex = 0
Selection.Locked = True
Selection.FormulaHidden = False
Range("a1").Select
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
For i = 1 To Sheets.Count
Range("a1").Select
Sheets(i).Protect Contents:=True, Password:="mac2000"
Next i
End Sub
you unprotect button should be set up with either and
input box or a userform. The advnatage of the userform is
that you can set the textbox entry to * whereas the
inptubox you will see the password being typed.
I have short password userform..Email me if you want a
copy sent to you.
>.
>