View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mike D. Mike D. is offline
external usenet poster
 
Posts: 36
Default Sheet protection/unprotection

I found an answer:

For Each sht In ActiveWorkbook.Sheets

ActiveSheet.Protect Password:="password", DrawingObjects:=True,
Contents:=True, Scenarios:=True

Next

The same goes for unprotect.

Thanks,
Mike.



"Mike D." wrote:

Is there a way to protect all the sheets in a workbook without specifying
each sheet separately. Currently, I select each sheet and then do
ActiveSheet.Unprotect.

Thanks,
Mike.