M
mikeburg
I am trying to execute code in BeforeSave in ThisWorkbook when the
user's name is Mike. I tried the following but it does not work
If Environ("UserName") = "Mike" then Msgbox Environ("UserName")
I also tried the following but it does not work either:
User = Environ("UserName")
If User = "Mike" Then MsgBox User
I must not be using the correct syntax. Can someone help? Thanks a
lot. mikeburg
user's name is Mike. I tried the following but it does not work
If Environ("UserName") = "Mike" then Msgbox Environ("UserName")
I also tried the following but it does not work either:
User = Environ("UserName")
If User = "Mike" Then MsgBox User
I must not be using the correct syntax. Can someone help? Thanks a
lot. mikeburg