ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Unprotect groups (https://www.excelbanter.com/excel-worksheet-functions/139945-unprotect-groups.html)

Ed Davis

Unprotect groups
 
Is there a way to unprotect a group rather than having to unprotect each
sheet individually?


JE McGimpsey

Unprotect groups
 
One way:

Public Sub UnprotectGroups()
Const csPWORD As String = "drowssap"
Dim ws As Worksheet
For Each ws In ActiveWindow.SelectedSheets
ws.Unprotect Password:=csPWORD
Next ws
End Sub

In article ,
"Ed Davis" wrote:

Is there a way to unprotect a group rather than having to unprotect each
sheet individually?


Ed Davis

Unprotect groups
 
I am assuming that the "drowssap" is the password for each sheet. Am I
correct?


"JE McGimpsey" wrote in message
...
One way:

Public Sub UnprotectGroups()
Const csPWORD As String = "drowssap"
Dim ws As Worksheet
For Each ws In ActiveWindow.SelectedSheets
ws.Unprotect Password:=csPWORD
Next ws
End Sub

In article ,
"Ed Davis" wrote:

Is there a way to unprotect a group rather than having to unprotect each
sheet individually?



Dave Peterson

Unprotect groups
 
Try spelling it in reverse for a hint.

I always thought JE was sending me a subliminal message to make me sleepy!

Ed Davis wrote:

I am assuming that the "drowssap" is the password for each sheet. Am I
correct?

"JE McGimpsey" wrote in message
...
One way:

Public Sub UnprotectGroups()
Const csPWORD As String = "drowssap"
Dim ws As Worksheet
For Each ws In ActiveWindow.SelectedSheets
ws.Unprotect Password:=csPWORD
Next ws
End Sub

In article ,
"Ed Davis" wrote:

Is there a way to unprotect a group rather than having to unprotect each
sheet individually?


--

Dave Peterson


All times are GMT +1. The time now is 02:50 AM.

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