Hi all,
I am currently trying to create a button within my workbook which will "reveal" all worksheets as read only.
I have a password protected button to 'Show all' worksheets within the workbook, the code for that being:
Sub ShowAll_Click()
Dim ws As Worksheet
Dim wb As Workbook
Dim i As Integer
Dim strResponse As String
strResponse = InputBox("Please enter the password.", "Password")
If strResponse = "Test" Then
Dim wsSheet As Worksheet
Application.ScreenUpdating = False
For Each wsSheet In Worksheets
wsSheet.Visible = True
Next wsSheet
Application.ScreenUpdating = True
Else
MsgBox "The password entered is incorrect.", vbCritical, "Incorrect Password"
Exit Sub
End If
End Sub
How do I update this to only show all worksheets in a read only format?
Many thanks!!
Bookmarks