Outlook 2003 Setting Contact's Initials via VBScript

  • Thread starter Thread starter Frank Rogler
  • Start date Start date
F

Frank Rogler

I'm trying to create a ContactItem via VBScript. Everything's fine
except for the Initials. The code I use:

objContact.FirstName = "sn"
objContact.LastName = "givenName"
objContact.Initials = "initials"
objContact.MiddleName = "middleName"

The result I get: Initials: s.m.g

Is there a way to set the initials properly?

Thanks,
Frank
 
The Initials property is auto-generated, unless you set it *last*. In your
code, as soon as you set MiddleName, the Initials property reverts to a
concatenation of the first letter of all three name properties.

Other name related Contact properties behave in a similar fasion, so keep an
eye out for these.
 
Back
Top