how to change fullname to TitleCase

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
 
M

Michael Bednarek

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.
 
Top