bonjour, j'aurai voulu en fait savoir quel code ajouter au mien pour que ça se fasse automatiquement à chaque saisie. Merci
Mon code : With ShEval
Set Cell = .Range("H4:H" & .Range("H" & Rows.Count).End(xlUp).Row).Find(Me.ComboBox2.Value, , LookIn:=xlValues, lookat:=xlWhole) 'feuille "Feuil1" Ou "Feuil2"
If Not Cell Is Nothing Then
Lgn = Cell.Row
Else
Lgn = .Range("A" & Rows.Count).End(xlUp)(2).Row
End If
.Range("A" & Lgn) = CDate(Date)
.Range("F" & Lgn) = Me.ComboBox2
.Range("G" & Lgn) = DateNaiss
If TextBox1 <> "" Then .Range("H" & Lgn) = TextBox1 * 1
If TextBox2 <> "" Then .Range("I" & Lgn) = TextBox2 * 1
If TextBox3 <> "" Then .Range("J" & Lgn) = TextBox3 * 1
If TextBox4 <> "" Then .Range("K" & Lgn) = TextBox4 * 1
If TextBox5 <> "" Then .Range("L" & Lgn) = TextBox5 * 1
If TextBox6 <> "" Then .Range("M" & Lgn) = TextBox6 * 1
If TextBox7 <> "" Then .Range("N" & Lgn) = TextBox7 * 1
If TextBox8 <> "" Then .Range("O" & Lgn) = TextBox8 * 1
If TextBox10 <> "" Then .Range("P" & Lgn) = TextBox10 * 1
End With