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
| Private Sub ListBox1_Click()
Dim CtrI As Long
If ListBox1.ListCount > 0 Then
For CtrI = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(CtrI) = True Then
For Each CelluleProduits In AireProduits
If CelluleProduits = ListBox1.List(CtrI) Then
CelluleProduits.Select
TBReference = CelluleProduits.Offset(0, 1)
TBNomdelentreprise = CelluleProduits.Offset(0, 2)
TBNom = CelluleProduits.Offset(0, 4)
TBPrenom = CelluleProduits.Offset(0, 5)
TBAdresse = CelluleProduits.Offset(0, 6)
TBCodepostal = CelluleProduits.Offset(0, 7)
TBVille = CelluleProduits.Offset(0, 8)
TBEmail = CelluleProduits.Offset(0, 9)
TBSiteinternet = CelluleProduits.Offset(0, 10)
CBCategorie = CelluleProduits.Offset(0, 11)
End If
Next CelluleProduits
End If
Next CtrI
End If
End Sub |
Partager