Private Sub Nouveau_Click()
Dim Ligne As String
UserForm1.TextBox10.Value = Sheets(1).Range("A65535").End(xlUp).Row + 1 'Textbox10 = numéro de la ligne
Ligne = UserForm1.TextBox10.Value
If Ligne = "" Then
MsgBox "Veuillez saisir le contact", , "Nouveaux contacts": Exit Sub
End If
For i = 1 To 8
Sheets(1).Cells(Ligne, i).Value = UserForm1.Controls("textbox" & i).Value
Next
TextBox8.SetFocus 'TextBox 8 = Titre
'Insertion des contacts dans Outlook
Dim objOutlook As Outlook.Application
Dim objContact As ContactItem
Set objOutlook = New Outlook.Application
Set objContact = objOutlook.CreateItem(olContactItem)
With objContact
.FullName = Sheets(1).Range("A65535").End(xlUp).Value
.BusinessTelephoneNumber = Sheets(1).Range("B65535").End(xlUp).Value
.BusinessAddressStreet = Sheets(1).Range("C65535").End(xlUp).Value
.BusinessAddressPostalCode = Sheets(1).Range("D65535").End(xlUp).Value
.BusinessAddressCity = Sheets(1).Range("E65535").End(xlUp).Value
.Email1Address = Sheets(1).Range("F65535").End(xlUp).Value
.Save
End With
End Sub