audrie magno was telling us:
audrie magno nous racontait que :
> In the code below, form field data is leaving Word and going to an
> Outlook contact list. Everything works EXCEPT it puts the new contact
[quoted text clipped - 13 lines]
> Dim objContact As ContactItem
> Set objContact = objOutlook.CreateItem(olContactItem)
CreateItem will only create default Outlook items.
Since you want to add an item to a non-default folder, you have to use the
Add method of the Items collection. As in:
Dim objOutlook As New outlook.Application
Dim myNamespace As outlook.NameSpace
Dim myItems As outlook.Items
Dim oOlFolder As outlook.MAPIFolder
Dim objContact As outlook.ContactItem
Set myNamespace = objOutlook.GetNamespace("MAPI")
Set oOlFolder = _
myNamespace.Folders("Custom Contacts").Folders("Speakers")
Set myItems = oOlFolder.Items
Set objContact = myItems.Add(olContactItem)
With objContact ...
But really, you should post in an Outlook group...

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org