Sub DerniereDate()
Dim x$, i%, dat$, y$, a(), n%
x = Application.Trim(ActiveCell) 'SUPPRESPACE
For i = 1 To Len(x)
dat = ""
y = Mid(x, i, 14)
If y Like "##?##?## ##:##" Then dat = Left(y, 6) & Left(Year(Date), 2) & Mid(y, 7)
y = Mid(x, i, 16)
If y Like "##?##?#### ##:##" Then dat = y
If IsDate(dat) Then ReDim Preserve a(n): a(n) = CDbl(CDate(dat)): n = n + 1
Next
If n Then MsgBox "Dernière date " & Format(Application.Max(a), "dd-mm-yyyy hh:mm")
End Sub