1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| 'Pour le bouton valider Nouveau contact Client
Dim derligne As Integer
If MsgBox("Confirmes-tu Fati l'ajout de ce contact à ta base client?", vbYesNo, "Confirmation") = vbYes Then
derligne = Sheets("Client").Range("A1048576").End(xlUp).Row + 1
Cells(derligne, 1) = ComboBox9.Value
Cells(derligne, 2) = ComboBox4.Value
Cells(derligne, 3) = TextBox1.Value
Cells(derligne, 4) = TextBox2.Value
Cells(derligne, 5) = TextBox3.Value
Cells(derligne, 6) = TextBox4.Value
Cells(derligne, 7) = TextBox5.Value
Cells(derligne, 8) = TextBox6.Value
Cells(derligne, 9) = TextBox7.Value
Cells(derligne, 10) = TextBox8.Value
Cells(derligne, 11) = TextBox9.Value
Cells(derligne, 12) = TextBox10.Value
Cells(derligne, 13) = TextBox11.Value
Cells(derligne, 14) = TextBox14.Value
Cells(derligne, 15) = TextBox17.Value
Cells(derligne, 16) = TextBox18.Value
Cells(derligne, 17) = TextBox19.Value
Cells(derligne, 18) = TextBox20.Value
Cells(derligne, 19) = TextBox21.Value
Cells(derligne, 20) = TextBox22.Value
Cells(derligne, 21) = OptionButton4.Value
Cells(derligne, 22) = OptionButton3.Value
Cells(derligne, 23) = TextBox15.Value
Cells(derligne, 24) = TextBox16.Value
Cells(derligne, 25) = ComboBox10.Value
Cells(derligne, 26) = TextBox12.Value |
Partager