Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2005

Tip: Looking for answers? Try searching our database.

Obtaining full name in VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
reveriedax - 22 Sep 2005 16:49 GMT
How can I obtain the first and last name of the logged in user from
within VBA.  I know that Environ("Username") will give the username,
but there is no such entry for the users full name.  

Thanks,
~ d
Dr. Stephan Kassanke - 22 Sep 2005 16:59 GMT
> How can I obtain the first and last name of the logged in user from
> within VBA.  I know that Environ("Username") will give the username,
> but there is no such entry for the users full name.
>
> Thanks,
> ~ d

http://www.mvps.org/access/api/api0066.htm (Get full name of the user
currently logged in to the system) should help you.

cheers,
Stephan
Jonathan West - 22 Sep 2005 18:34 GMT
> How can I obtain the first and last name of the logged in user from
> within VBA.  I know that Environ("Username") will give the username,
> but there is no such entry for the users full name.
>
> Thanks,
> ~ d

How to get the username of the current user
http://www.word.mvps.org/FAQs/MacrosVBA/GetCurUserName.htm

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.