ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Different Returns (https://www.excelbanter.com/excel-programming/340973-different-returns.html)

Ronbo

Different Returns
 
Why do I get different returns using Application.UserName and
Environ("UserName").

Jim Thomlinson[_4_]

Different Returns
 
Application.Uername returns the value from Tools - Options - General Tab -
Username. This is the Excel user name

Environ("userName") returns their NT User Name that they logged onto the
system with. This is the windows user name.

--
HTH...

Jim Thomlinson


"Ronbo" wrote:

Why do I get different returns using Application.UserName and
Environ("UserName").


Ronbo

Different Returns
 
I beleived that it was something to that effect. Thanks for clarifying the
issue.

"Jim Thomlinson" wrote:

Application.Uername returns the value from Tools - Options - General Tab -
Username. This is the Excel user name

Environ("userName") returns their NT User Name that they logged onto the
system with. This is the windows user name.

--
HTH...

Jim Thomlinson


"Ronbo" wrote:

Why do I get different returns using Application.UserName and
Environ("UserName").



All times are GMT +1. The time now is 09:52 AM.

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