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: 27,285
Default Opening CSV file causes date differences

You can try naming the file with a txt extension. Then code opentext to
treat that column as text. You can convert it to a date once it is in
Excel, using your code. Reform the column, then do a replace of - with - in
the edit menu. This should cause the text string to be evaluated as a date.

Regards,
Tom Ogilvy


Mark wrote in message
...
Currently when I open a CSV file with date "05/08" it
comes up as "5-AUG" when I open the file from Excel. If I
open the file from VBA code using workbooks.open into
excel the date comes up as "8-MAY" any ideas of how to
open the file in VBA code and return the correct format
of "5-AUG"

Thanks in advance



 
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
opening an excel file differences - time George Applegate[_2_] Excel Discussion (Misc queries) 0 May 1st 09 05:57 PM
date format problem from opening dbf file in excel 2007 pol Excel Discussion (Misc queries) 5 December 1st 08 11:42 AM
opening word doc from excel 2000 and 2003 differences Colin C Excel Discussion (Misc queries) 0 December 11th 05 08:06 PM
Opening a csv file with US date format on a Australian PC Troy Lea Excel Discussion (Misc queries) 2 March 16th 05 10:05 PM
Excel changes file modified date when opening my add-in Bob Phillips[_5_] Excel Programming 2 July 15th 03 12:25 AM


All times are GMT +1. The time now is 11:35 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"