Please Help, j'ai un message d'erreur sur mon code ci-dessous
Private Sub CommandButton1_Click()
Msgbx "Confirma a adição de dados?", vbYesNo, "confirmation"
Dim derligne As Integer
If Msgbx("Confirma a adição de dados?", vbYesNo, "confirmation") = vbYes Then
derligne = Sheets("Ledger").Range("A:A1048576").End(x1Up).Row + 1
Cells(derligne, 1) = ComboBox1_mois.Value
Cells(derligne, 2) = TextBox1.Value
Cells(derligne, 3) = TextBox2.Value
Cells(derligne, 4) = TextBox3.Value
Cells(derligne, 5) = TextBox4.Value
Cells(derligne, 6) = TextBox5.Value
Cells(derligne, 7) = TextBox6.Value
Cells(derligne, 8) = TextBox7.Value
Cells(derligne, 9) = TextBox8.Value
Cells(derligne, 10) = TextBox9.Value
Cells(derligne, 11) = TextBox10.Value
Cells(derligne, 12) = TextBox11.Value
Cells(derligne, 13) = TextBox12.Value
Cells(derligne, 14) = TextBox13.Value
Cells(derligne, 15) = TextBox14.Value
Cells(derligne, 16) = TextBox15.Value
Cells(derligne, 17) = TextBox16.Value
Cells(derligne, 18) = TextBox17.Value
Cells(derligne, 19) = TextBox18.Value
Cells(derligne, 20) = TextBox19.Value
End If
Unload Me
End Sub