Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA change a Outlook contact name from last to first to

Status
Not open for further replies.

dprayner

Programmer
Oct 14, 2002
140
US
Hi people.

I was wondering what the easiest way to change a name returned from Outlook (ie. smith, john) to display the first name then last (ie. John Smith) preferably without the comma.

Than you, DAVE
 
If you mean to do it with code then:
strDisplayName = Split(strLastFirstName, ", ")(1) & " " & Split(strLastFirstName, ", ")(0)

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top