I have been lucky enough to have been given this code for me which works perfectly well for one use, I need to amend it to work for 2 users, i.e the code needs to work when only the 2 named users log on
If Environ("UserName") <> "John Smith" Then
MsgBox "Sorry, you can't run this macro."
Exit Sub
Else
' Your code goes here
End If
Any ideas ?
If Environ("UserName") <> "John Smith" Then
MsgBox "Sorry, you can't run this macro."
Exit Sub
Else
' Your code goes here
End If
Any ideas ?