ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Password protection in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/59654-password-protection-excel.html)

calmo

Password protection in Excel
 
Is it possible to password protect several worksheets in one step, or do I
need to them all individually?

JE McGimpsey

Password protection in Excel
 
You could use a macro:

Public Sub ProtectAll()
Const PWORD As String = "drowssap"
Dim wsSheet As Worksheet
For Each wsSheet In ActiveWorkbook.Worksheets
wsSheet.Protect PWORD
Next wsSheet
End Sub

In article ,
"calmo" wrote:

Is it possible to password protect several worksheets in one step, or do I
need to them all individually?



All times are GMT +1. The time now is 04:28 PM.

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