Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
protect/unprotect grouped worksheets
Hi, I have these macro's below that protect/unprotect all worksheets in the
book. How do I get them to only work on the sheets I selected? TIA Todd Sub ProtectAll() Dim ws As Worksheet For Each ws In Worksheets ws.Protect Password:="" Next ws End Sub Sub UnprotectAll() Dim ws As Worksheet For Each ws In Worksheets ws.Unprotect Password:="" Next ws End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Protect/Unprotect Multiple Worksheets | Excel Discussion (Misc queries) | |||
unprotect/protect grouped worksheets in excel | Setting up and Configuration of Excel | |||
Protect/unprotect all worksheets | Excel Worksheet Functions | |||
protect / unprotect worksheets using VBA | Excel Programming | |||
Macro to protect/unprotect worksheets | Excel Programming |