Macro for worksheet protection
Hi,
what have I to do to protect all sheets in my workbook by checkbox?
Tony
€žJulieD" napÃ*sal (napÃ*sala):
Hi Floss
ActiveSheet.Unprotect Password:="me"
ActiveSheet.Protect Password:="me"
this unprotects / protects the activesheet
when you want to specify the name of the sheet you can use
ThisWorkbook.Worksheets("Sheet1).Unprotect("YourPa ssword")
ThisWorkbook.Worksheets("Sheet1).Protect("YourPass word")
Cheers
julieD
"Floss" wrote in message
...
Hi,
Need help with macro code to run a passworded worksheet 'Protect' and one
to 'Unprotect' it.
Thank you.
Floss
|