Pauljj said:Thank you for your reply, what I need it do though is only allow for example John Smith to execute that option button, So if John Smith logs on to his computer he can execute this option button, if Steve Jones logs on I need an error message to come up if he tries to click on the option button ....possible ???
If Environ("UserName") <> "John Smith" Then
MsgBox "Sorry, you can't run this macro."
Exit Sub
Else
' Your code goes here
End If