Results 1 to 2 of 2

Thread: .csv file dropping formatting
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Apr 2019
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Default .csv file dropping formatting


    Is there a way to save a .csv file with the required formatting? I need to enter "0000" in a range of cells. When the .csv file was open on my computer, I formatted the range for text so I could enter the required "0000" in the cells. I save the file and sent it to someone else, but when they attempted to upload the file, the formatting was removed and the range was changed to "0" only. This caused the upload to fail. Does anyone know what happened that might have caused the formatting to change? Also, does anyone know how to save the .csv file with the required formatting? Thank you in advance.

  2. #2
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Post Thanks / Like
    57 Post(s)
    11 Thread(s)

    Default Re: .csv file dropping formatting

    Welcome to the Board!

    A csv file will save with whatever formatting you have applied.
    HOWEVER, if you open the csv file in Excel, it will do a conversion of certain field values, and anything that looks like a number will be converted to a number (i.e. "0000" will change to 0).
    For this reason, you should NEVER use Excel to open/view a csv file, if you want to see what its contents really look like. Use a Text Editor, like NotePad or WordPad to confirm that the csv has the data the way you want it.
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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