Boa tarde!!
Tente assim.
Sub AleVBA_26522()
Dim rRange As Range
Set rRange = Range("A1", Range("A65536").End(xlUp))
With rRange
.EntireColumn.Insert
.Offset(0, -1).FormulaR1C1 = "=DATEVALUE(MID(RC[1],SEARCH("" "",RC[1])-2,2)&""/""&MID(RC[1],SEARCH(""-"",RC[1])+1,2)&""/""&LEFT(RC[1],4)&MID(RC[1],SEARCH("" "",RC[1]),9))"
.Offset(0, -1) = .Offset(0, -1).Value
.Offset(0, -1).NumberFormat = "dd/mm/yyyy"
.EntireColumn.Delete
End With
End Sub
Att
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 10/11/2017 1:33 pm