Thread: Userid
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein \(MVP - VB\)[_1796_] Rick Rothstein \(MVP - VB\)[_1796_] is offline
external usenet poster
 
Posts: 1
Default Userid

You can get that by executing this function call within your code...

Environ("USERNAME")

Rick


"Marvin Buzz" wrote in message
...
I need to determine the Windows login ID of my current user to determine
whether (s)he is authorized to execute certain macros. How would I get
that
information programmatically?

Thanks