If I check system logon/username and do something like:
this works, but if I want to set more possible users, like:
this doesn't work. Any idea what is the correct way to do this? Or is there any other way to set authorized users for the workbook, without user's input?
Code:
If UserName <> "johndoe" Then ActiveWorkbook.Close True
Code:
If UserName <> "johndoe" Or If UserName <> "janedoe" Then ActiveWorkbook.Close