Protecting Sheets

  • Thread starter Thread starter Patrick Simonds
  • Start date Start date
P

Patrick Simonds

I have a workbook which has about 120 worksheets. Is there any way to set
the Worksheet Protection on all sheets at one time? I want all sheets set to
allow only the selection of unlocked cells.
 
Patrick,

Try this:

Public Sub ProtectSheet()
For Each sht In Sheets
sht.Protect
Next sht
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top