ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to get the user name (https://www.excelbanter.com/excel-programming/371460-how-get-user-name.html)

Chevy

How to get the user name
 
sHi...

Sorry, I donĀ“t have a good english...
I need to obtain(in a excel macro) the user name that is actually login on
in a windows sesion.

thank in advance...

--
Eusebio

Die_Another_Day

How to get the user name
 
in 2003 this works...
Variable = Environ("username")

Charles

Chevy wrote:
sHi...

Sorry, I don“t have a good english...
I need to obtain(in a excel macro) the user name that is actually login on
in a windows sesion.

thank in advance...

--
Eusebio



Tom Ogilvy

How to get the user name
 
try

sUser = environ("username")
msgbox sUser

--
Regards,
Tom Ogilvy


"Chevy" wrote:

sHi...

Sorry, I donĀ“t have a good english...
I need to obtain(in a excel macro) the user name that is actually login on
in a windows sesion.

thank in advance...

--
Eusebio


GKeramidas

How to get the user name
 
.... and your english was fine.

--


Gary Keramidas


"Chevy" wrote in message
...
sHi...

Sorry, I donĀ“t have a good english...
I need to obtain(in a excel macro) the user name that is actually login on
in a windows sesion.

thank in advance...

--
Eusebio




All times are GMT +1. The time now is 05:15 AM.

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