Hi Team,
I really hope you can help me to fix my problem.
I have a huge(over 1000 rows) xls-sheet report containing a column "T" having date information (i call it information because the column is formatted as "general") in the US format MM/DD/YY. In order to use the date information, I need to convert the column "T" into date format and change the date format to "DD.MM.YYYY". So far, so good.
At the moment my solution is:
I was wondering if there is any more efficient way to get the same result. I played around with functions like:
Hope my question is understandable and you can help
thanks a lot
Stefan
I really hope you can help me to fix my problem.
I have a huge(over 1000 rows) xls-sheet report containing a column "T" having date information (i call it information because the column is formatted as "general") in the US format MM/DD/YY. In order to use the date information, I need to convert the column "T" into date format and change the date format to "DD.MM.YYYY". So far, so good.
At the moment my solution is:
For Each cell In Rng
Current_Date = CDate(Format$(cell.Value, "mm.dd.yyyy"))
cell.Value = Format(Current_Date, "dd.mm.yyyy")
cell.Value = DateValue(cell.Value)
Next cell
This solution works fine, but it takes about 5mins for the amount of rows in my report. I was wondering if there is any more efficient way to get the same result. I played around with functions like:
Columns("T:T").Replace What:="/", Replacement:=".", LookAt:=xlPart
but this function doesn't give me the option to switch from MM/DD/YY to DD.MM.YYYY.Hope my question is understandable and you can help
thanks a lot
Stefan