Bonsoir
Avant de sauvegarder des infos on fait les vérifications
Remplaces ta macro par celle-ci
Private Sub CommandButton1_Click()
Dim LastLigne As Range
Dim Msg1 As String
If TextBox2 = "" Then
MsgBox "Votre Contrat n'a pas de Numéro ? ", vbCritical, "Nouveau Validation Error" 'Test TextBox2 non rempli
Exit Sub
End If
If TextBox6 = "" Then
MsgBox "Le Nom du chef de Projet ? ", vbCritical, "Nouveau Validation Error" 'Test TextBox3 non rempli
Exit Sub
End If
If TextBox8 = "" Then
MsgBox "L'Adresse de votre contact n'a pas de ville ? ", vbCritical, "Nouveau Validation Error" 'Test TextBox3 non rempli
Exit Sub
End If
With WsListes
Set LastLigne = .Range("L" & Rows.Count).End(xlUp).Offset(1, 0)
End With
With LastLigne
.Offset(0, 0) = TextBox2.Value
.Offset(0, 1) = TextBox6.Value
.Offset(0, 2) = TextBox8.Value
End With
Msg1 = MsgBox("Voulez-vous continuer pour d'autres nouvelles entrées ?", _
vbYesNo, "Nouveau Continuer ?") 'Demande pour une nouvelle entrée
If Msg1 = vbYes Then
TextBox2 = ""
TextBox6 = ""
TextBox8 = ""
TextBox2.SetFocus
Else
Unload Me
End If
End Sub