Due to text file to excel split using "|" the end result is the mix
format of date and text
It's worth pointing out here, that Text-to-columns allows you to select the incoming date format and outputted data type etc. in the options, which would negate the need to convert these dates if done properly.
However, to answer your question - I think you're after something like this:
Sub test()
With ActiveSheet
lastrow = .Cells(.Rows.Count, "E").End(xlUp).Row
For Each c In .Range("E2:I" & lastrow)
c.Value = DateSerial(Val(Right(c.Value, 2)), Val(Mid(c.Value, 4, 2)), Val(Left(c.Value, 2)))
Next
End With
End Sub
text-to-columns
wizard. - Ron Rosenfeld