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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
| Private Sub ComboBox1_Change()
End Sub
Private Sub ComboBox2_Change()
End Sub
Private Sub CommandButton1_Click()
Dim derligne As Integer
' instructions pour confirmer l'ajout de la nouvelle ligne
If MsgBox("confirmez", vbYesNo, "confirmation") = vbYes Then
derligne = Sheets("Feuil1").Range("A65000").End(xlUp).Row + 1
' a recopier autant de fois qu'on a un champ a ajouter
' attention, le numéro après derligne correspond au numéro de colonne
Cells(derligne, 1) = TextBox1.Value 'saisie article
Cells(derligne, 3) = TextBox2.Value ' saisie PHA
Cells(derligne, 4) = TextBox3.Value ' saisie PMEV
Cells(derligne, 5) = TextBox4.Value ' saisie PV
Cells(derligne, 6) = TextBox7.Value ' DATE MEV
Cells(derligne, 7) = TextBox8.Value ' DATE RAPPEL
Cells(derligne, 8) = TextBox9.Value ' DATE VENTE
Cells(derligne, 18) = TextBox6.Value ' STOCK
Cells(derligne, 13) = TextBox5.Value ' TAILLE
Cells(derligne, 14) = TextBox10.Value ' ACTIVE / NON ACTIVE
Cells(derligne, 2) = ComboBox1.Value ' saisie mail
Cells(derligne, 19) = ComboBox2.Value ' STATUT EN VENDTE A VENDRE VENDU
Cells(derligne, 12) = ComboBox3.Value ' CATEGORIE
Cells(derligne, 17) = ComboBox4.Value ' PERIODICITE
If colonne > 0 Then Sheets("feuil1").Cells(derligne, colonne) = CTRL
End If
End Sub
Private Sub CommandButton2_Click()
' instruction pour bouton QUITTER
Unload UserForm1
End Sub
Private Sub Label1_Click()
End Sub
Private Sub Label14_Click()
End Sub
Private Sub Label2_Click()
End Sub
Private Sub Label5_Click()
End Sub
Private Sub Label8_Click()
End Sub
Private Sub UserForm_Click()
End Sub
Private Sub UserForm_Initialize()
'Dim tablo, derligne As Integer
'With DONNEES
'derligne = .Range("A65000").End(xlUp).Row
'tablo = .Range("A1:A" & derligne)
'ComboBox1.List = tablo
'End With
End Sub |
Partager