how to change fullname to TitleCase

  • Thread starter Thread starter Southern at Heart
  • Start date Start date
S

Southern at Heart

I need to change the fullname to Proper case or Title case.
I can't get the syntax for this second line...

My code
....
For Each Contact In objAllContacts
Contact.FullName.case = vbProperCase
Contact.Save
Next
....

Am I close?
Southern@Heart
 
Do you want to have the first character in upper and the rest in lower
cases? Use the mid function to access specific characters. Then use the
UCase and LCase functions to convert them.

--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Sun, 10 Feb 2008 20:05:01 -0800 schrieb Southern at Heart:
 
I need to change the fullname to Proper case or Title case.
I can't get the syntax for this second line...

My code
...
For Each Contact In objAllContacts
Contact.FullName.case = vbProperCase
Contact.Save
Next
...

Am I close?

Have a look at the documentation for the function StrConv; e.g.
Contact.FullName = StrConv(Contact.FullName, vbProperCase)
might work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top