The following code creates a new contact from my form but it will not save and the error is that the parameter value is not valid....what can we do to fix this please?
Sub OpenMyContact()
Dim oContact As outlook.contactItem
Dim oFolder As outlook.MAPIFolder
Set oFolder = Application.Session.GetDefaultFolder(olFolderContacts)
Set oContact = oFolder.Items.Add("IPM.Contact.Contact Form 1.")
oContact.Display
End Sub
Sub OpenMyContact()
Dim oContact As outlook.contactItem
Dim oFolder As outlook.MAPIFolder
Set oFolder = Application.Session.GetDefaultFolder(olFolderContacts)
Set oContact = oFolder.Items.Add("IPM.Contact.Contact Form 1.")
oContact.Display
End Sub