LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Date Formatting

Hi All

I have a CSV file with a column that contains a European date, say
11/03/2005 (11 March 2005). If I open this directly Excel displays the
date as expected e.g. 11/03/2005. Because of the processing I need to do
with other fields I rename the file, before opening to a .TXT file with....

Name "c:\test\audit.csv" As "c:\test\audit.txt"

I then open the text file using.......

Workbooks.OpenText Filename:="c:\test\audit.txt", Origin:=xlWindows _
, StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote,
_
ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=False,
Comma:=True _
, Space:=False, Other:=False, FieldInfo:=Array(Array(1, 1), Array(2,
1), _
Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), Array(7, 1),
Array(8, 2), Array(9, 2))

The date now shows as 03/11/2005 !! - how can I stop this ?


--
Cheers
Nigel




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Date formatting Melissa Excel Discussion (Misc queries) 2 November 9th 06 05:37 PM
Formatting Date newguy Excel Discussion (Misc queries) 4 September 18th 06 01:49 PM
date formatting BernieH Excel Discussion (Misc queries) 2 May 30th 05 03:33 PM
Date Colum Date Formatting & Validation Mike[_81_] Excel Programming 1 June 7th 04 01:59 AM


All times are GMT +1. The time now is 10:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"