1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Private Sub CommandButton1_Click()
If ComboBox1.Value = "" Then
MsgBox " Veuillez rentrer le nom du client svp"
Else
If MsgBox("Confirmer-vous l'insertion", vbYesNo, "demande") = vbYes Then
For I = 3 To ligne
x = Now
Workbooks("TAF 1").Sheets(1).Range("A15") = ComboBox1.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("A5") = TextBox2.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("B5") = TextBox4.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("C5") = TextBox6.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("D5") = TextBox3.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("E5") = TextBox12.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("F5") = TextBox7.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("G5") = TextBox10.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("H5") = TextBox11.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("I5") = TextBox8.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("J5") = TextBox9.Text
Workbooks("TAF 1").Sheets(CLIENT24 - 2020).Range("J5") = TextBox13.Text |
Partager