Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default 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
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
Getting Logged in User Name in formula... Kedar Agarkar Excel Discussion (Misc queries) 9 October 30th 07 03:55 PM
Getting Logged in User Name in formula... Kedar Agarkar Excel Worksheet Functions 9 October 30th 07 03:55 PM
Auto Updating the Logged in User DCHims Excel Discussion (Misc queries) 1 September 4th 07 07:58 PM
How do you reference the logged on user name in excel? Taurus Excel Discussion (Misc queries) 2 January 24th 06 07:38 PM
Find Out Logged in User Nigel Excel Programming 2 August 30th 05 06:17 AM


All times are GMT +1. The time now is 12:27 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"