Bonjour le fil
Je viens de tester une création puis une modification cela l'air de fonctionner, c'est au moment de la recherche que ça coince, le code actuel est dans TectBox5_Change :
DateConsigne = Me.TextBox5
For I = 1 To RngDate1.Count
If DateConsigne <> "" Then
'If DateConsigne = RngDate1.Item(i).Value Or DateConsigne = RngDate2.Item(i).Value Then
If RngDate1.Item(I).Value <= DateConsigne And (DateConsigne <= RngDate2.Item(I).Value _
Or F1.Cells(I, 8).Value = "") Then
'Ajoute y ce que tu souhaites, avec la forme que tu souhaites !
ListBox1.AddItem (RngDate1.Item(I).Value)
ListBox1.List(ListBox1.ListCount - 1, 1) = (RngDate2.Item(I).Value)
ListBox1.List(ListBox1.ListCount - 1, 2) = (RngConsigne.Item(I).Value)
ListBox1.List(ListBox1.ListCount - 1, 3) = F1.Range("D" & I)
ListBox1.List(ListBox1.ListCount - 1, 4) = F1.Range("E" & I)
ListBox1.List(ListBox1.ListCount - 1, 5) = F1.Range("F" & I)
ListBox1.List(ListBox1.ListCount - 1, 6) = F1.Range("G" & I)
ListBox1.List(ListBox1.ListCount - 1, 7) = F1.Range("A" & I)
End If
et j'aimerai avoir ce classement,
ListBox1.AddItem = F1.Range("A" & I)
ListBox1.List(ListBox1.ListCount - 1, 1) = F1.Range("B" & I)
ListBox1.List(ListBox1.ListCount - 1, 2) = F1.Range("C" & I)
ListBox1.List(ListBox1.ListCount - 1, 3) = F1.Range("D" & I)
ListBox1.List(ListBox1.ListCount - 1, 4) = F1.Range("E" & I)
ListBox1.List(ListBox1.ListCount - 1, 5) = F1.Range("F" & I)
ListBox1.List(ListBox1.ListCount - 1, 6) = F1.Range("G" & I)
ListBox1.List(ListBox1.ListCount - 1, 7) = F1.Range("H" & I)
Et ensuite, au click d'une consigne dans ListBox1 les données s'affiche dans les objets voulu afin de pouvoir effectuer une modif ou finaliser la consigne.
Merci
Cdlt
pompaero