Hello all you experts out there,
I have this code and it works for the most part except for the password. The code itself works but when I go to unlock the sheet it doesn't ask me for the password. So it doesn't seem to add it in. Can you please check it out and see what I am missing? THANK YOU in advance
I have this code and it works for the most part except for the password. The code itself works but when I go to unlock the sheet it doesn't ask me for the password. So it doesn't seem to add it in. Can you please check it out and see what I am missing? THANK YOU in advance
Code:
Private Sub Workbook_Open()
Dim wshTAB As Variant
Dim intPassWord As String
AccountPassWord = "dippy"
For Each wshTAB In Worksheets(Array("NL_FTM_TRK", "NL_JAX_TRK", "NL_MIA_TRK", "NL_ORL_TRK", "NL_TAM_TRK", "NL_TRAN_OH", "RT_JAX_TRK", "RT_TAM_TRK"))
wshTAB.Protect Password:=AccountPassWord
wshTAB.EnableOutlining = True
wshTAB.Protect Userinterfaceonly:=True
wshTAB.Protect AllowFiltering:=True
Next wshTAB
End Sub
Last edited by a moderator: