I have a simple code that I am wondering if there is a better way of hiding the password, besides from "Locking the project from viewing". I am setting the sheet in xlSheetVeryHidden, but still someone can see the pasword if they want to.
Here is the code:
Private Sub Workbook_Open()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("OpenLog")
If Not ws.Visible = xlSheetVeryHidden Then ws.Visible = xlSheetVeryHidden
ws.Protect Password:=1214, UserInterFaceOnly:=True
End Sub
Any help is appreciated
Nick.