Bonjour,
Je n'arrive pas à faire en sorte que ma ListBox affiche les dates dépassées.
J'ai mis le code utilisé ci-dessous.
Je peux, si besoin, mettre le programme avec.
Merci de votre aide.
Private Sub UserForm_initialize()
Dim i As Long, DerLig As Long, x As Date
On Error Resume Next
Me.ListBox1.ColumnCount = 3
Me.ListBox1.ColumnWidths = "40,70,50"
With Sheets("Emprunteur")
ListBox1.Clear
DerLig = .Range("C" & Rows.Count).End(xlUp).Row
For i = 2 To DerLig
If .Range("I" & i).Value < x Then
Me.ListBox1.AddItem .Range("I" & i).Value
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 1) = .Range("C" & i).Value
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 2) = .Range("D" & i).Value
End If
Next i
End With
End Sub