How to prevent CompanyName being formatted.

S

Shelby

Hi,

When I set:
olitem.CompanyName = "The Fullerton Hotel"

When I retrieve, it becomes: Fullerton Hotel, The

How can I ensure the CompanyName of a contact is exactly what I've set?

Thanks
 
K

Ken Slovak - [MVP - Outlook]

Is there a person's name in that contact record? If not the company name is
being formatted according to your contact settings in Tools, Options. Most
likely that's LastName, FirstName. See if setting the FileAs field and/or
Subject field to what you want in addition to CompanyName helps. You might
have to set CompanyName then save the item, then set FileAs and Subject and
then save again.
 
S

Shelby

Hi Ken,

I've tried what you suggested but it still the same.
I realise that it only happen if the CompanyName starts with "The".
If I set to :
olitem.CompanyName = "Fullerton Hotel"
it remain as it is and not "Hotel, Fullerton".

Shelby
 
K

Ken Slovak - [MVP - Outlook]

I guess that's your answer then. If you can't control it then live with it
and work around it.
 
Top