+ Reply to Thread
Results 1 to 4 of 4

Special formatting in CSV file

  1. #1
    Registered User
    Join Date
    07-30-2009
    Location
    Louisiana, USA
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    4

    Unhappy Special formatting in CSV file

    I have a CSV file that passes a time stamp that I would like to have reformatted as it is loaded. It seems to me that within the CSV field formatting commands can be passed.

    Does anyone have any ideas?

    The data looks like: 8/9/2009 8:32:02 am.
    Excel reformatted it: 8/9/2009 8:32 dropping the seconds and the am/pm.
    We have figured out how to have it passed as a literal but we need it in a time stamp format.


  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Special formatting in CSV file

    um... formatting doesn't remove information, think of it as a lens on information, so just redefine the formatting and you don't need to do anything else:
    custom format:
    d/m/yyyy h:mm:ss am/pm

    HTH

  3. #3
    Registered User
    Join Date
    07-30-2009
    Location
    Louisiana, USA
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    4

    Smile Re: Special formatting in CSV file

    My ultimate goal is for the CSV file to be created by a mainframe and emailed to the user without ever being loaded into Excel.

    Since I have no way of reformatting a cell by using a macro I was really looking for a way to pass the information needed to format a cell when Excel is eventually loaded by appending it to the CSV data.

    We do something similar for hyper links but I can't seem to find the correct combination for a time stamp.

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Special formatting in CSV file

    I'd be surprised if you could do that... but we learn something new every day, as they say.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1