i have some code for opening the workbook that only allows it to be opened if the correct name is entered.
would i then be able to have an individual password for each user after entering their name. if entry is wrong i would like the workbook to close.
the code i have is below
x = InputBox("Enter Your Name", "Authentication")If x = "False" Or x = "" Then MsgBox "Incorrect: you must enter a name" ActiveWorkbook.Close FalseEnd IfIf x <> "John" And x <> "Glen" Then MsgBox "Incorrect name" ActiveWorkbook.Close FalseEnd IfSheets("sheet1").Range("E3").Value = x</pre>
would i then be able to have an individual password for each user after entering their name. if entry is wrong i would like the workbook to close.
the code i have is below
x = InputBox("Enter Your Name", "Authentication")If x = "False" Or x = "" Then MsgBox "Incorrect: you must enter a name" ActiveWorkbook.Close FalseEnd IfIf x <> "John" And x <> "Glen" Then MsgBox "Incorrect name" ActiveWorkbook.Close FalseEnd IfSheets("sheet1").Range("E3").Value = x</pre>