Bonjour
merci pour cette solution
pourquoi ma solution ne fonctionne pas
Private Sub CmdValide_Click()
ligne = Sheets("Frais").Range("E3650").End(xlUp).Row + 1
Cells(ligne, 1).Value = TextDate
Cells(ligne, 10).Value = txtnosm
Cells(ligne, 11).Value = Format(Calendar1, "mmmm")
Cells(ligne, 12).Value = Format(Calendar1, "YYYY")
Cells(ligne, 2).Value = Format(TextBox1)
Cells(ligne, 3).Value = Format(ComboBox1)
Cells(ligne, 4).Value = Format(TextBox2)
Cells(ligne, 5).Value = Format(ComboBox2)
Cells(ligne, 6).Value = Format(TextBox3)
Cells(ligne, 7).Value = Format(TextBox12)
Cells(ligne, 8).Value = Format(TextBox21)
Cells(ligne + 1, 5).Value = Format(ComboBox3)
Cells(ligne + 1, 6).Value = Format(TextBox4)
Cells(ligne + 1, 7).Value = Format(TextBox13)
Cells(ligne + 1, 8).Value = Format(TextBox22)
Cells(ligne + 2, 5).Value = Format(ComboBox4)
Cells(ligne + 2, 6).Value = Format(TextBox5)
Cells(ligne + 2, 7).Value = Format(TextBox14)
Cells(ligne + 2, 8).Value = Format(TextBox23)