Hi, Sue!
In my code I'm writing new records via the CreateItem method of the
Outlook.Application object (Outlook.ContactItem). Sample code follows:
Dim oCT As Outlook.ContactItem =
oApp.CreateItem(Outlook.OlItemType.olContactItem)
With sttUser
If .strFullName <> "" Then oCT.FullName = .strFullName
If .strFirstName <> "" Then oCT.FirstName = .strFirstName
If .strNote <> "" Then oCT.Body = .strNote
If .strTitle <> "" Then oCT.Title = .strTitle
oCT.Save()
End With
"sttUser" is a structure that contains data imported from another contact
manager application; some lines have been deleted to save bandwidth. There
are no errors thrown during the Save operation, and all data (except .Body)
are written correctly. I know there's good data in the variable in question
because I can write it in it's entirety in other fields (such as the
user-defined fields of Outlook).
Thanks!
Jack
ContactItem.Body is correct. What code doesn't work to give you the idea
that it isn't?
FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via web
interface, at
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers