I've got a date column that look like this:
04-03-2013 01:57:32 PM IST
I am trying to change it to look like this:
04/03/2013 13:57:32
my code:
Columns("D:E").Select
Selection.Replace What:=" IST", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:=" IDT", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="-", Replacement:="/", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
the problome is that it change it to look like that:
04-03-2013 01:57:32 PM
and only when I press manually ENTER after "PM" it changes to:
04/03/2013 13:57:32
How can i do it automatically?