Hi
I would like to protect a worksheet and at the same time be able to do calculation, cut and paste functions via macros.
This is the code I am using
Private Sub Workbook_Open()
Sheets("Calculations").Protect UserInterfaceOnly:=True
end sub
This code protects the sheet but all I have to do is tools>protection> unprotect sheet from the menu and this unprotect the sheet. I do not need to supply a password.
Is there a way to use a password with the
sheet1.Protect UserInterfaceOnly:=True
Charles
I would like to protect a worksheet and at the same time be able to do calculation, cut and paste functions via macros.
This is the code I am using
Private Sub Workbook_Open()
Sheets("Calculations").Protect UserInterfaceOnly:=True
end sub
This code protects the sheet but all I have to do is tools>protection> unprotect sheet from the menu and this unprotect the sheet. I do not need to supply a password.
Is there a way to use a password with the
sheet1.Protect UserInterfaceOnly:=True
Charles