Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The macro below protects all worksheets in my workbook. I only want to
protect specific worksheets with the names Menu1, Menu2, etc. How would i modify the macro to accomplish this. I know I can just select each worksheet and protect it but I would like to learn the more advanced version below. Sub ProtectSheets() Dim mySheet As Worksheet For Each mySheet In Worksheets mySheet.Select mySheet.protect "Password", True, True, True Next mySheet End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password Protect - put password in a cell in the workbook | Excel Programming | |||
Lock and password protect only cells with formulas on all sheets in a workbook | Excel Programming | |||
password protect sheets | Excel Worksheet Functions | |||
View limited sheets in workbook based on logon/password protect | Excel Programming |