Private Sub AlimenteTb()
Dim Lgn As Range, Bcle&, c As Range, Adresse$
[COLOR="Red"]If TextBox1 <> "" Then
Set Lgn = PlageBase(lignerecherche, 1)
Else:
Set Lgn = PlageBase(IndexBase, 1)
End If[/COLOR]
For Bcle = 1 To ColTb.Count
ColTb(Bcle).Text = Lgn(1, Bcle).Value
Next Bcle
LabIndex = "Fiche " & IndexBase & " sur " & PlageBase.Rows.Count
ListView1.ListItems.Clear
With Sheets("evenement")
Set c = .Columns(1).Find(ColTb(3), lookat:=xlWhole)
If Not c Is Nothing Then
Adresse = c.Address
Do
With ListView1
.ListItems.Add , , c
.ListItems(.ListItems.Count).ListSubItems.Add , , c.Offset(, 1)
.ListItems(.ListItems.Count).ListSubItems.Add , , c.Offset(, 2)
End With
Set c = .Columns(1).FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adresse
End If
End With
ListView2.ListItems.Clear
With Sheets("feuil2")
Set c = .Columns(1).Find(ColTb(3), lookat:=xlWhole)
If Not c Is Nothing Then
Adresse = c.Address
Do
With ListView2
.ListItems.Add , , c
.ListItems(.ListItems.Count).ListSubItems.Add , , c.Offset(, 1)
.ListItems(.ListItems.Count).ListSubItems.Add , , Format(c.Offset(, 2), "hh:mm")
.ListItems(.ListItems.Count).ListSubItems.Add , , Format(c.Offset(, 3), "hh:mm")
.ListItems(.ListItems.Count).ListSubItems.Add , , Format(c.Offset(, 4), "hh:mm")
End With
Set c = .Columns(1).FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adresse
End If
End With
End Sub