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
|
Dim Plage As Range
Dim I As Integer
Dim J As Integer
With Worksheets("recherche"): Set Plage = .Range(.Cells(1, 3), .Cells(.Rows.Count, 3).End(xlUp)): End With
Plage.AutoFilter 1, "C", xlOr, "CD"
With Worksheets("recherche")
For I = 1 To .Cells(.Rows.Count, 1).End(xlUp).Row
If .Rows(I).Hidden = False Then
ListBox1.AddItem .Cells(I, 1).Value
ListBox1.Column(1, J) = .Cells(I, 2).Value
ListBox1.Column(2, J) = .Cells(I, 3).Value
ListBox1.Column(3, J) = .Cells(I, 4).Value
J = J + 1
End If
Next I
End With
Plage.AutoFilter |
Partager