Revision: 63756
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 5, 2013 00:41 by Hassito
Initial Code
Private Sub CommandButton_Click() Application.ScreenUpdating = False 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:="EE" Next wSheet ActiveWindow.DisplayWorkbookTabs = False End Sub
Initial URL
Initial Description
This code enables the protection of the sheet with a password and then hides all the sheets.
Initial Title
Hide & Protect the sheets
Initial Tags
Initial Language
Visual Basic