Protection

K

Keith

Is it possible to apply password protection to an entire spreadsheet without
having to go to each individual worksheet ?

Thanks,
Keith
 
H

Harald Staff

Hi Keith

No. A common workaround is a macro that loops all sheets and lock/unlock:

Sub LockMe()
Dim Wks As Worksheet
For Each Wks In ActiveWorkbook.Worksheets
Wks.Protect Password:="******"
Next
End Sub

HTH. Best wishes Harald
 
K

Keith

Thanks,
Keith



Harald Staff said:
Hi Keith

No. A common workaround is a macro that loops all sheets and lock/unlock:

Sub LockMe()
Dim Wks As Worksheet
For Each Wks In ActiveWorkbook.Worksheets
Wks.Protect Password:="******"
Next
End Sub

HTH. Best wishes Harald
 

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

Top