Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Nothing built in but you can do it with a fairly simple macro. I have created
an addin for myself with the code in it to make it easy to do... Public Sub ProtectAll() Dim wks As Worksheet Dim wksAll As Sheets Application.ScreenUpdating = False If ActiveWindow.SelectedSheets.Count 1 Then Set wksAll = ActiveWindow.SelectedSheets Else Set wksAll = ActiveWorkbook.Worksheets End If On Error Resume Next For Each wks In wksAll Select Case Trim(wks.Name) Case "Start" 'excluded sheet Case "Main" 'excluded sheet Case Else wks.Protect "MyPassword" End Select Next wks Application.ScreenUpdating = True End Sub -- HTH... Jim Thomlinson "Donnah" wrote: Is there any way to protect more than one worksheet at a time without have to right click on each worksheets tab and choose 'Protect Sheet'? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protecting and Unprotecting several worksheets at one time | Excel Discussion (Misc queries) | |||
Protecting worksheet | Excel Worksheet Functions | |||
Protecting Multiple Worksheets at the same time | Excel Worksheet Functions | |||
Un-Protecting a Worksheet | Excel Discussion (Misc queries) | |||
Using subtotaling and protecting a sheet at the same time | Excel Worksheet Functions |