Forum Discussion
Nina_SC
Jun 07, 2019Copper Contributor
Convert Text to Date Format
Hello everyone, I'm just an excel newbie and I've been finding ways on how to convert a date text string to date format. I find it peculiar that after transferring all my CSV files through a flas...
- Jun 07, 2019
Hi Nina,
you can use this macro, see attached file to convert dates. It converts all dates in selection to real date.
Sub KonvertDate()
Dim rngCell As Range
For Each rngCell In Selection
rngCell.Value = CDate(rngCell.Value)
Next rngCell
End SubBest regards from germany
Bernd
http://www.vba-tanker.com
Nina_SC
Jul 14, 2019Copper Contributor
Wyn Hopkins Hi wyn, thank you so much for your suggestion. I tried applying it and used power query in power bi -- and after changing the locale still nothing has changed. The error was still there. I don't know where the error is coming from but would you mind taking a look at my file? It would mean a lot and thank you so much.
Wyn Hopkins
Jul 15, 2019MVP
If you don't have the original unsaved then you may need to use a formula approach like the attached