ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel (https://www.excelbanter.com/excel-discussion-misc-queries/57241-excel.html)

BC@D

Excel
 
How do I Unprotect all sheets in a worksheet at once?

JE McGimpsey

Excel
 
This is rather an FAQ, but here's one way (you need to use a macro):

Public Sub UnProtectAll()
Const sPWORD As String = "drowssap"
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Unprotect sPWORD
Next ws
End Sub

You can find more in the archives:

http://groups.google.com/advanced_gr...ugroup=*excel*


In article ,
"BC@D" wrote:

How do I Unprotect all sheets in a worksheet at once?



All times are GMT +1. The time now is 09:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com