VB Code:
Private o1 As Outlook.Application
Private Function CreateContact(Name As String, Nick As String, Email As String, Optional Folder As Outlook.MAPIFolder = Nothing) As Outlook.ContactItem
'Create a new contact item
If Folder Is Nothing Then
Set CreateContact = o1.CreateItem(olContactItem)
Else
Set CreateContact = Folder.Items.Add(olContactItem)
End If
'Set a few of the many possible contact parameters.
CreateContact.FullName = "Name"
CreateContact.NickName = "NickName"
CreateContact.Email1Address = "Email"
'Commit the contact
CreateContact.Save
End Function