Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 -- mikeburg ------------------------------------------------------------------------ mikeburg's Profile: http://www.excelforum.com/member.php...o&userid=24581 View this thread: http://www.excelforum.com/showthread...hreadid=508723 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Defined Function Syntax | Excel Worksheet Functions | |||
Syntax of If statement in before print event | Excel Programming | |||
user form-on open event? keydown event? | Excel Programming | |||
Save Event - Determine if called by code or user | Excel Programming | |||
need help with syntax of a Workbook Event | Excel Programming |