User name as default in list

5 pts.
Tags:
MOSS
SharePoint
SharePoint 2007
With the =[Me] function a list can return domain/username as a default text. Is there a way to return regular name instead? e.g. instead of "aeropoint/jdwyer" it returns "Jeremy Dwyer."

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you’re talking about VB hereafter a simple function that will do it:

<pre>Function PullUserFullname(strUser)
Set User = GetObject(“WinNT://<b>YOURDOMAIN</b>/” & strUser & “,user”)
PullUserFullname = User.Fullname
End Function</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: