Hi
Im having a weird problem, I have copied around 2500 lines of dates into my spreadsheet, and some were in date format others were in general format. I have changed the format of the column to date, but the ones that were previously just text are staying formatted as text.
I've found if I select the cell, then place my cursor at the end of the the text and press enter, it then converts to date format.
Obviously to do this for 2500 lines would be time consuming.
Is there a way I can record or write a macro that will select each cell in turn to the end of the list, and literally just accept the value that is already in there, press return and move to the next line?
I tried recording a macro but when I look at the code, the value is showing as the value that is in the cell already, if I run this on every cell, it will change the value to that value.
example
Im having a weird problem, I have copied around 2500 lines of dates into my spreadsheet, and some were in date format others were in general format. I have changed the format of the column to date, but the ones that were previously just text are staying formatted as text.
I've found if I select the cell, then place my cursor at the end of the the text and press enter, it then converts to date format.
Obviously to do this for 2500 lines would be time consuming.
Is there a way I can record or write a macro that will select each cell in turn to the end of the list, and literally just accept the value that is already in there, press return and move to the next line?
I tried recording a macro but when I look at the code, the value is showing as the value that is in the cell already, if I run this on every cell, it will change the value to that value.
example
Code:
Sub Macro1()'
' Macro1 Macro
'
'
ActiveCell.FormulaR1C1 = "3/22/2017"
Range("C3").Select
End Sub