J John Apr 23, 2005 #1 Is it possible to protect all visible and invisible worksheets with the same password with a piece of code. Thanks
Is it possible to protect all visible and invisible worksheets with the same password with a piece of code. Thanks
D Dave Peterson Apr 23, 2005 #2 somthing like... Option Explicit Sub testme() Dim wks As Worksheet For Each wks In ActiveWorkbook.Worksheets wks.Protect Password:="hi" Next wks End Sub
somthing like... Option Explicit Sub testme() Dim wks As Worksheet For Each wks In ActiveWorkbook.Worksheets wks.Protect Password:="hi" Next wks End Sub
J John Apr 23, 2005 #3 Thanks Dave Its a useful function Dave Peterson said: somthing like... Option Explicit Sub testme() Dim wks As Worksheet For Each wks In ActiveWorkbook.Worksheets wks.Protect Password:="hi" Next wks End Sub Click to expand...
Thanks Dave Its a useful function Dave Peterson said: somthing like... Option Explicit Sub testme() Dim wks As Worksheet For Each wks In ActiveWorkbook.Worksheets wks.Protect Password:="hi" Next wks End Sub Click to expand...