Hello gang,
A while ago, I found a really neat trick on this board to change data from a download
"01.09.2011"
into proper dates - 01/09/2011 - by using the data / text to columns function. How much time did that save!?
All well and good, but when I recorded this and used it in a quite long macro, it has been noted that it changes some of the dates to the US date format. i.e. the above becomes 09/01/2011. This is really maddening, especially as something in the future now looks to be 8 months overdue.
I do this twice in the macro on two tabs and worryingly, this issue seems to only be happening on on of the worksheets. The format of the resulting cells is Date - English (United Kingdom).
Can anyone help?
Here is the section of code:
As always, thanks in advance
I have checked the file from last week - it was running fine then! I have a template: two reports are pasted in and then the macro runs. the template is read only and so should run the same one week to the next.
A while ago, I found a really neat trick on this board to change data from a download
"01.09.2011"
into proper dates - 01/09/2011 - by using the data / text to columns function. How much time did that save!?
All well and good, but when I recorded this and used it in a quite long macro, it has been noted that it changes some of the dates to the US date format. i.e. the above becomes 09/01/2011. This is really maddening, especially as something in the future now looks to be 8 months overdue.
I do this twice in the macro on two tabs and worryingly, this issue seems to only be happening on on of the worksheets. The format of the resulting cells is Date - English (United Kingdom).
Can anyone help?
Here is the section of code:
Code:
datarng = Range("A" & Rows.Count).End(xlUp).Row
Range("AD13:ad" & datarng).Select
Selection.TextToColumns Destination:=Range("AD13"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, OtherChar _
:=".", FieldInfo:=Array(1, 4), TrailingMinusNumbers:=True
As always, thanks in advance
I have checked the file from last week - it was running fine then! I have a template: two reports are pasted in and then the macro runs. the template is read only and so should run the same one week to the next.
Last edited: