Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
sri sri is offline
external usenet poster
 
Posts: 37
Default Login Name - VBA

Hello,

I am developing an user interface using VBA in which i want to get the
Username using VBA and not inputted by the user manually..

To get this, i thought of using Application.UserName property, but was told
that it would only give the name to whom the Excel is licensed..i can't bet
on it...so what i thought was to get the Login Name used to login to the
System (Windows XP)..

Whoever logs into tthe system and use this program, that name would be
automatically used!!!

Could anybody help me in getting the Login Name using VBA?

Cheers

Sri

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Login Name - VBA

Sri,

You have been told correctly. Use

sUser = Environ("UserName")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sri" wrote in message
...
Hello,

I am developing an user interface using VBA in which i want to get the
Username using VBA and not inputted by the user manually..

To get this, i thought of using Application.UserName property, but was

told
that it would only give the name to whom the Excel is licensed..i can't

bet
on it...so what i thought was to get the Login Name used to login to the
System (Windows XP)..

Whoever logs into tthe system and use this program, that name would be
automatically used!!!

Could anybody help me in getting the Login Name using VBA?

Cheers

Sri



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
Login System STEVE BELL Excel Programming 0 July 13th 05 10:57 PM
Login Information Arvind P Rangan Excel Programming 3 February 9th 04 03:18 PM
Login Help!!! TMO[_6_] Excel Programming 1 February 8th 04 03:09 PM
Login Box help Bill Lunney Excel Programming 0 August 20th 03 11:45 AM
Login Box Tom Ogilvy Excel Programming 0 August 8th 03 01:42 PM


All times are GMT +1. The time now is 08:50 PM.

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"