Hi. I have a macro to Password protect and hide sheets but cannot get one to unlock and unhide them to work. I am using the code below to lock the workbook and hide the sheets
Can anyone help with the unlock/unhide code?
Thanks
Code:
Sub Lock1()
Sheets("2018").Select
ActiveWindow.SelectedSheets.Visible=False
Sheets("Comments").Select
ActiveWindow.SelectedSheets.Visible-False
Sheets("Sheet1").Select
Range ("D8").Select
ActiveWorkbook.Protect password="holidays",Structure:=True, Windows:=True
Sheets("Sheet1").Select
End Sub
Can anyone help with the unlock/unhide code?
Thanks