Protect all WorkSheets in the WorkBook VBA Macro Worksheets Get link Facebook X Pinterest Email Other Apps 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 Comments
Comments