Hi
I have a bunch of sheets with lots of dates on each sheet. My problem is some dates were entered as 2003/07/06 (yyyy/mm/dd) and others were entered as 06/07/2003 (dd/mm/yyyy) in the cells (the dates came from different sources and some of them were typed in as well). In all the cases the date is displayed as 06/07/2003 (dd/mm/yyyy). VBA is seeing both formats as dates but when working with the cells one is interpreted as 06/07/2003 and the other one is interpreted as 07/06/2003 because of the different formats in which it was entered.
I want to make a subroutine in VBA that can go through all the sheets and make the dates the same but alas...
Is there a way I can read the date from the cell into a text string as it is displayed in the cell?. If I can do this I can then force the date into a format that is consistent over all the cells.
There is literally thousands of dates so changing them by hand is impossible.
Or any other ideas on how I can get the dates in one format will be appreciated?
Bookmarks