Hello again.
I'm having issues converting text to dates. The text is imported from another program via excel. That process creates data that could be date as text or the date in the wrong format. there may also be a lot of empty cells.
So what I need is to be able to run a macro that takes the text or wrongly formated date value in a range of cells and convert it to a date value with the format "dd-mmm".
I have the code below:
[vba]Sub ChangedateSF()
For Each Cell In Sheets("SF").Range("B32:B171")
If IsDate(Cell.Value) Then
LValue = Cell.Value
Cell.Value = Format(DateValue(Cell.Value), "dd-mmm")
End If
Next Cell
End Sub[/vba]
this works ok but is VERY slow and I have to run 3 different macros, one for each sheet (RF,SF and SSF) as I dont know how to combine it all into one script.
Any help would be greatly appreciated