View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default Macro to retrieve user information

try this line of code

msgbox environ("userName")

--
HTH...

Jim Thomlinson


"Randy" wrote:

I have a need for a function or macro to retrieve the currently logged on
user name. Has anyone done this before or know how to do this? Also, would
the same thing work for Word? I'm running Office 2003.

Thanks!

Randy