Hi,
i have a Lucent cvsautofile that I import into excel each day using
if I open the above file using excel in the same way the date will show as dd/mm/yy
but if I run the recorded code above it enters the date as mm/dd/yy
anyone know why this is and any way to get round it without having to find dates in the data and then reformat them.
Hope this is of use, Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
i have a Lucent cvsautofile that I import into excel each day using
Code:
aname = ActiveWorkbook.Name
ddate = [c1].Value
pname = "P:\reports\Temp\Flash " & Format(ddate, "ddmmyy") & ".xls"
Workbooks.OpenText FileName:=pname, Origin:= _
437, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, Comma:=False _
, Space:=False, Other:=False, FieldInfo:=Array(1, 1), _
TrailingMinusNumbers:=True
if I open the above file using excel in the same way the date will show as dd/mm/yy
but if I run the recorded code above it enters the date as mm/dd/yy
anyone know why this is and any way to get round it without having to find dates in the data and then reformat them.
Hope this is of use, Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)