Option Explicit
Private TNoms(), TDatRet(), DatRet As Date, DatDép As Date
Private Sub UserForm_Initialize()
txtNow.Value = "On est : " & Format(DateValue(Now), "dddd dd/mm/yyyy")
TNoms = Feuil1.[B2].Resize(Feuil1.[B1000000].End(xlUp).Row - 1).Value
TDatRet = Feuil1.[D2].Resize(UBound(TNoms, 1)).Value
End Sub
Private Sub cmbNom_Change()
Dim L&
DatRet = 0
For L = 1 To UBound(TNoms, 1)
If TNoms(L, 1) = cmbNom.Text Then
If DatRet < TDatRet(L, 1) Then DatRet = TDatRet(L, 1)
End If
Next L
End Sub
Private Sub txtDate_départ_Change()
On Error Resume Next
DatDép = CDate(txtDate_départ.Text)
If Err Then Exit Sub
If DatRet >= DatDép Then
txtInfodate.Text =...