+ Reply to Thread
Results 1 to 7 of 7

How to stop the adding of quotes to file when saving as a csv file

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    How to stop the adding of quotes to file when saving as a csv file

    Hi,

    I have a file.....contains 4 columns of data. I want to save this file as a csv file. WHen i open the file i saved it contains extra quote marks like this " around certain text. How do i stop this?

  2. #2
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: How to stop the adding of quotes to file when saving as a csv file

    note: i open the saved file using notepad and this is when i see the extra quotes

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to stop the adding of quotes to file when saving as a csv file

    Does the 'certain text' contain commas by any chance?
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: How to stop the adding of quotes to file when saving as a csv file

    no but it does contain quotes..........i think i just read that if a cell of data contains commas or quotes then when you save it as a csv file quotes get added at beginning and end of cell data...........have not verified this though..........

    is there anyway around this?

  5. #5
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: How to stop the adding of quotes to file when saving as a csv file

    Are you opening the .csv in excel?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to stop the adding of quotes to file when saving as a csv file

    As long as the text never contains commas, you could write some code to output the sheet to a CSV, although I think this is pretty standard behaviour.

  7. #7
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: How to stop the adding of quotes to file when saving as a csv file

    sorry for not responding until now i was out of town..........

    i am not reading in the csv file with excel i am reaing in the csv file using notepad.........

    what i found as a fix is to remove the double quote and replace them with single quote and things worked fine.

    thanks again.

+ 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] Double Quotes using Chr(34) and Extra Quotes when saving as text file
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 12:26 PM
  2. saving text to a file - getting rid of quotes
    By madhg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2012, 07:08 PM
  3. Saving to a .csv file and only 1st row contains quotes
    By MOFLBoy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-02-2009, 05:07 PM
  4. Replies: 5
    Last Post: 09-14-2005, 02:06 PM
  5. Replies: 0
    Last Post: 03-29-2005, 11:06 AM

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