+ Reply to Thread
Results 1 to 5 of 5

Saving a .CSV file

  1. #1
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    201

    Saving a .CSV file

    I open a .csv file from code in Excel. Find records in the .csv file and when the record was found I change a cells color to show which records were found. But then I can't save the .csv file after I'm done!

    The file is opened with:
    Please Login or Register  to view this content.
    cFullFileName is the full path and filename of the .csv file.

    I look up my records and I change the cell color. This works up to here. I can see the cells with the new colors.

    But then:
    Please Login or Register  to view this content.
    does not save the file but does close the file. On the close it asks if I want to save the file. Selecting Save still does not save the file.

    Is there some special way that a .csv file should be saved?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Saving a .CSV file

    A cvs file is basically a text file. You can't colour "cells" in a text file. If that's all you are changing, you're on a loser. You'd have to save the file as an xlsx format workbook to save any formatting.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Saving a .CSV file

    Quote Originally Posted by TMS View Post
    You'd have to save the file as an xlsx format workbook to save any formatting
    Also as a '.xml' file

  4. #4
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: Saving a .CSV file

    That makes sense. Thanks.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Saving a .CSV file

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Saving file seems to combine saving file with Personal.xlsb
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2017, 04:48 PM
  2. Replies: 0
    Last Post: 06-15-2016, 06:24 PM
  3. Replies: 11
    Last Post: 08-23-2014, 01:28 PM
  4. Replies: 5
    Last Post: 09-13-2012, 11:50 AM
  5. Problem saving Excel file that copies an embedded object from a separate file
    By bhodge10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2012, 02:47 PM
  6. Creating a .txt file extracting information from a Excel file saving as .resx file
    By AbdallahHajbed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2012, 09:00 AM
  7. [SOLVED] Saving multi-tab excel file created from comma delimited text file
    By Marcus Aurelius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 01:20 PM

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