Bonjour les amis, j'ai un classeur ou je saisi les chèques mes le problème se pose quand je passe à la saisie suivante, elle saut de 7 lignes , je veux que vous me rectifier ce qui ne va pas dans ce code :
Private Sub Bt_Valider_Click()
InsMot = Worksheets("Feuil1").Range("A65536").End(xlUp).Row + 7
Worksheets("Feuil1").Range("A" & InsMot).Value = UserForm1.TextBox1.Value
UserForm1.TextBox1.Value = ""
InsMot = Worksheets("Feuil1").Range("B65536").End(xlUp).Row + 7
Worksheets("Feuil1").Range("B" & InsMot).Value = UserForm1.TextBox2.Value
UserForm1.TextBox2.Value = ""
InsMot = Worksheets("Feuil1").Range("C65536").End(xlUp).Row + 7
Worksheets("Feuil1").Range("C" & InsMot).Value = UserForm1.TextBox3.Value
UserForm1.TextBox3.Value = ""
InsMot = Worksheets("Feuil1").Range("D65536").End(xlUp).Row + 7
Worksheets("Feuil1").Range("D" & InsMot).Value = UserForm1.TextBox4.Value
UserForm1.TextBox4.Value = ""
InsMot = Worksheets("Feuil1").Range("E65536").End(xlUp).Row + 7
Worksheets("Feuil1").Range("E" & InsMot).Value = UserForm1.TextBox5.Value
UserForm1.TextBox5.Value = ""
End Sub
voici mon fichier :