Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a Workbook that contains 6 seperate Sheets. On the PC using this
workbook, there can be 3 other workbooks open at the same time. To cut corners, I use the Sub below to remove protection from all Sheets in the Workbook that contains the 6 seperate sheets, and the following Sub to turn it back on, can you tell me if this is the correct method, or is there a better way. For some reason, I keep getting problems when trying to enter data i unprotected Cells, and was wondering if I am doing this wrong. Thanks Pete Private Sub ProtectionOff() Dim ws As Worksheet For Each ws In Worksheets ws.Unprotect ("PassWord") Next ws End Sub Private Sub ProtectionOn() Dim ws As Worksheet For Each ws In Worksheets ws.Protect Password:="PassWord" Next ws End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protecting/Unprotecting all sheets with macro leads to "image" iss | Excel Worksheet Functions | |||
protecting and unprotecting | Excel Worksheet Functions | |||
PROTECTING/UNPROTECTING SHEETS | Excel Discussion (Misc queries) | |||
Protecting/Unprotecting Workbook | Excel Programming | |||
Protecting and Unprotecting multiple sheets | Excel Programming |