I have an excel document which the first column is formated:
date
2017-08-01
2017-08-01
2017-08-01
2017-08-01
2017-08-01
What I do is to copy the whole column to a text document and paste it back to the worksheet. Tt fixes the date format on its own, it comes back, perfectly:
DATE
01/08/2017
01/08/2017
01/08/2017
01/08/2017
01/08/2017
I have tried formating the cells within excel (dd/mm/yyyy) and record macro, nothing works, only the cutting and pasting onto notepad, now I need to achieve this by vba, I tried the normal:
Range("a2:a5").Select
Selection.NumberFormat = "@"
But it did not work, any suggestions?