Sub FormatDatesTaleaux()
'Tableau1
Call FormatTexteEnDate(Range("tableau1[Date de création]"))
Call FormatTexteEnDate(Range("tableau1[Date de derniere modification]"))
'Tableau2
Call FormatTexteEnDate(Range("tableau2[Date de création]"))
Call FormatTexteEnDate(Range("tableau2[Date de derniere modification]"))
End Sub
Sub FormatTexteEnDate(Colonne As Range)
Dim i As Long
Dim TabColonne() As Variant
TabColonne = Colonne.Value
For i = 1 To UBound(TabColonne, 1)
If IsDate(TabColonne(i, 1)) Then TabColonne(i, 1) = CDate(TabColonne(i, 1))
Next i
Colonne.Value = TabColonne
Colonne.NumberFormatLocal = "jj/mm/aaaa hh:mm"
End Sub