Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Know the real name and surname of user logged...
I know the way to know the ID name of user logged on PC, but i want to know
the real name of user Name and Surname (for example Jhon Smith) and store it in a cells...? Or.. if existis in wich part of dir, text file or other is stored this information? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Know the real name and surname of user logged...
Public Function GetFullLoginName() As String Dim Domain As String Dim User As String With CreateObject("Wscript.Network") Domain = .UserDomain: User = .UserName End With GetFullLoginName = GetObject("WinNT://" & Domain & "/" & User & ",user").FullName End Function -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "sal21" wrote in message ... I know the way to know the ID name of user logged on PC, but i want to know the real name of user Name and Surname (for example Jhon Smith) and store it in a cells...? Or.. if existis in wich part of dir, text file or other is stored this information? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Getting Logged in User Name in formula... | Excel Discussion (Misc queries) | |||
Getting Logged in User Name in formula... | Excel Worksheet Functions | |||
Auto Updating the Logged in User | Excel Discussion (Misc queries) | |||
How do you reference the logged on user name in excel? | Excel Discussion (Misc queries) | |||
Find Out Logged in User | Excel Programming |