Hi All,
I have searched high and low for a solution to this problem.
The system I use churns out Excel spreadsheets with the date format 00.00.0000 however, to get Excel to recognize this, especially when I want to sort and filter then I need to change the format to 00/00/0000.
When I do this manually I highlight the columns with dates and do a simple find and replace, replacing '.' with '/', it works perfectly, and all the dates are correct.
However when I run my Macro, which includes the code below, a select number of dates are changed to the US format, which messes up all of my worksheet calculations.
Workbooks("Save Here.xls").Worksheets("Save Here").Range("H:I").Select
Selection.Replace What:=".", Replacement:="/", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Workbooks("Save Here.xls").Worksheets("Save Here").Range("G:G").Select
Selection.Replace What:=" ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Has anyone seen this before, or something like it? Any help would be much appreciated.
GillyB
I have searched high and low for a solution to this problem.
The system I use churns out Excel spreadsheets with the date format 00.00.0000 however, to get Excel to recognize this, especially when I want to sort and filter then I need to change the format to 00/00/0000.
When I do this manually I highlight the columns with dates and do a simple find and replace, replacing '.' with '/', it works perfectly, and all the dates are correct.
However when I run my Macro, which includes the code below, a select number of dates are changed to the US format, which messes up all of my worksheet calculations.
Workbooks("Save Here.xls").Worksheets("Save Here").Range("H:I").Select
Selection.Replace What:=".", Replacement:="/", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Workbooks("Save Here.xls").Worksheets("Save Here").Range("G:G").Select
Selection.Replace What:=" ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Has anyone seen this before, or something like it? Any help would be much appreciated.
GillyB