Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Login System | Excel Programming | |||
Login Information | Excel Programming | |||
Login Help!!! | Excel Programming | |||
Login Box help | Excel Programming | |||
Login Box | Excel Programming |