Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Closed Thread
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 25th, 2004, 07:14 PM
Registered User
Join Date: Mar 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default .csv file saved with Excel, issue with date forma


I'm importing .csv file in Excel. After sorting it I'd like to save it in .csv format.
This works well except for the data field.

The import date/time format is: "mm/dd/yyyy hh/mm/ss.xxx"
In the excel file the format is automaticaly change in the cell with: mm.ss.x
All the information is still in excel (by cliquing on the cell I can see all the infomation)

But when saving it back in .csv format only "mm.ss.x" is saved all the "mm/dd/yyyy hh" is lost....
I tried differents excel date format, but couldn't find one which gives all :"mm/dd/yyyy hh/mm/ss.xxx"

Do you have a way to either,
- Open an .csv file and make excel treat the date column as a std string.
- Save in .csv format with all date information"mm/dd/yyyy hh/mm/ss.xxx"

thanks for you help,

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save a file in CSV format thru Excel VBA macro roli2712 Excel VBA 1 July 11th, 2007 03:05 AM
Export to Excel as .csv file from JSP naheedv Reporting Services 3 November 30th, 2006 08:04 AM
Excel Vs CSV file - import performance itHighway Classic ASP Databases 0 August 5th, 2006 03:40 PM
How To Export a specific Excel Sheet as a csv file mrjits Excel VBA 5 August 1st, 2006 03:04 PM
VB: Opening CSV file in Excel versus notepad codehappy VB How-To 6 April 22nd, 2005 10:59 AM

All times are GMT -4. The time now is 09:21 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.