Hello everyone,

I haven an excel sheet containing contact information.

In cell A1 is the firstname of the contact.

I made a button on the excel sheet. When I press it it should UPDATE the firstname in the cell to outlook contacts.

I have build some code wich ADDS a NEW contact to outlook.
That code works fine.

BUT...

I just want to change the firstname of that contact and I dont want to add a NEW contact.

I hope that you guys can help me.

VB Code:
  1. Sub MakeContact()
  2.  
  3.     Dim olApp As outlook.Application
  4.     Dim olCi As outlook.ContactItem
  5.  
  6.     Set olApp = New outlook.Application
  7.     Set olCi = olApp.CreateItem(olContactItem)
  8.  
  9.  
  10.  
  11.  
  12.  
  13.     With olCi
  14.         .FirstName = Cells(1, 1)
  15. '        .LastName = "Kusleika"
  16. '        .MobileTelephoneNumber = "(402) 555-1212"
  17. '        .Email1Address = "[email protected]"
  18. '        .HomeAddressStreet = "111 S 1st"
  19. '        .HomeAddressCity = "Omaha"
  20. '        .HomeAddressState = "NE"
  21. '        .HomeAddressPostalCode = "68100"
  22. '        .SelectedMailingAddress = olHome
  23. '        .Categories = "Business, Personal"
  24.         .Save
  25.     End With
  26.  
  27.     Set olCi = Nothing
  28.     Set olApp = Nothing
  29.  
  30. End Sub