Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I report to User A vs User B from shared data table? RogClark Excel Discussion (Misc queries) 0 April 30th 09 07:54 PM
How do I format a cell, so the user must use a user calendar? nathan Excel Discussion (Misc queries) 0 January 16th 06 05:26 PM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM
User Defined Functions - Help Text - Make it Easy for the User Andibevan[_2_] Excel Programming 4 March 17th 05 09:51 AM
How to: Make user click End User License Agreement acceptance jasonsweeney[_21_] Excel Programming 7 January 30th 04 01:41 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"