Sub aCSV_date5()
nepasprendredate = ",0,1,"
Application.ScreenUpdating = False
end_date = 0
For n = 3 To Range("A65536").End(xlUp).Row
[COLOR=seagreen]'MsgBox "1er etape Ligne " & n[/COLOR]
num = 0
numr = 0
col = 1
t = Split(Range("A" & n), " ")
r = Split(Range("A" & n), ";")
If end_date = 0 Then
For m = 1 To UBound(t)
If num = 2 Then
Cells(n, col - 2) = t((num) + 1) & "." & t(num) & "." & t((num) + 2)
Cells(n, col - 2) = Replace(Cells(n, col - 2), ",", "")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "January", "01")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "February", "02")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "March", "03")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "April", "04")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "May", "05")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "June", "06")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "July", "07")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "August", "08")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "September", "09")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "October", "10")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "November", "11")
Cells(n, col - 2) = Replace(Cells(n, col - 2), "December", "12")
[COLOR=seagreen]'Cells(n, col - 2).NumberFormat = "dd.mm.yyyy"[/COLOR]
[COLOR=red]Cells(n, col - 2).NumberFormat = "m/d/yyyy"[/COLOR]
End If
If num = 5 Then
Cells(n, col - 4) = Left(t(num), 8)
End If
If num > 5 Then
end_date = 1
End If
col = col + 1
num = num + 1
Next m
End If
If end_date = 1 Then
[COLOR=seagreen]'MsgBox "2em etape Ligne" & n[/COLOR]
col = 3
For p = 1 To UBound(r)
[COLOR=seagreen]'If InStr(nepasprendredate, "," & CStr(num) & ",") = 0 Then[/COLOR]
Cells(n, col) = r((numr) + 1)
col = col + 1
[COLOR=seagreen]'End If[/COLOR]
numr = numr + 1
If col > 256 Then Exit For
Next p
End If
end_date = 0
Next n
Application.ScreenUpdating = True
End Sub