unprotecting sheets

O

one

I am searching for code that will protect and unprotect
ALL worksheets in the workbook. Any help?
 
F

Frank Kabel

Hi
try something like the following:

sub protect_all()
dim wks as worksheet
for each wks in worksheets
wks.protect password:="yourpassword"
next
end sub

sub unprotect_all()
dim wks as worksheet
for each wks in worksheets
wks.unprotect password:="yourpassword"
next
end sub
 
Top