Bonjour
Mettre ce code à la place de l'autre
Cordialement
Private Sub CommandButton1_Click()
Dim O As Integer
If MsgBox("Confirmez-vous l'insertion de ce nouveau contact ?", vbYesNo, "Demande de confirmation d'ajout") = vbYes Then
P = Sheets("Clients").Range("B65536").End(xlUp).Row + 1 'Pour placer le nouvel enregistrement à la première ligne de tableau non vide
Range("D" & P).Value = Format(TextBox8, "MM / DD / YYYY") '
Range("F" & P).Value = ComboBox1
Range("E" & P).Value = ComboBox2
Range("B" & P).Value = UCase(TextBox1)
Range("C" & P).Value = UCase(TextBox2)
Range("I" & P).Value = Format(TextBox3, "general number")
Range("J" & P).Value = Format(TextBox3, "general number")
Range("H" & P).Value = UCase(TextBox4)
Range("G" & P).Value = TextBox5
Range("K" & P).Value = Format(TextBox7, "0#"" ""##"" ""##"" ""##"" ""##")
Range("L" & P).Value = TextBox6
End If
Unload Me
UserForm1.Show
End Sub