ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userid (https://www.excelbanter.com/excel-programming/409821-userid.html)

Marvin Buzz

Userid
 
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

Rick Rothstein \(MVP - VB\)[_1796_]

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



Zack Barresse

Userid
 
Hi there,

Ken Puls has a great write-up on his site with examples, full code and
pictures...

http://excelguru.ca/node/2

HTH

--
Zack Barresse



"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




All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com