S
SUSAN
I entered the following code
Sub ProtectAll()
Dim wSheet As Worksheet
Dim Pwd As String
Pwd = InputBox("Enter your password to protect all worksheets",
"Password Input")
For Each wSheet In Worksheets
wSheet.Protect Password:=Pwd
Next wSheet
End Sub
But when i run the code i get an error and all it says is "400", can someone
hep me, i am trying to protect 52 sheets at one time
Thanks
Sub ProtectAll()
Dim wSheet As Worksheet
Dim Pwd As String
Pwd = InputBox("Enter your password to protect all worksheets",
"Password Input")
For Each wSheet In Worksheets
wSheet.Protect Password:=Pwd
Next wSheet
End Sub
But when i run the code i get an error and all it says is "400", can someone
hep me, i am trying to protect 52 sheets at one time
Thanks