+ Reply to Thread
Results 1 to 6 of 6

Adding commas to cell adds unwated quotes

  1. #1
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Adding commas to cell adds unwated quotes

    I have a macro that adds a comma to the end of a cell value for all cells within a range that contains a value.

    Please Login or Register  to view this content.
    It looks fine in Excel. However, when I save the file as a Text File, it places unwanted quotes around the data where the comma was placed.

    In excel it looks like this 700.23, 459.1, 500.02 (which is what I want)

    When saved as a txt file it looks like this "700.23," "459.1," 500.02 (which is not what I want)

    Any help would be appreciated.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Adding commas to cell adds unwated quotes

    Hi, Hood,

    regarding your macro
    Please Login or Register  to view this content.
    How do you save? I tried saving as Text(MS-Dos) and couldnīt find any delimiters there, saving as CSV finding the delimiter in addition (my version places ; as delimiter). Or are you using a macro for that action?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    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: Adding commas to cell adds unwated quotes

    For some reason, everything I copy into a txt file from excel gets quotes, I don't think its just because of your macro.

  4. #4
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Adding commas to cell adds unwated quotes

    I tried saving as Text(MS-Dos).

    If I save the file without the commas, it looks fine. When I add the commas, I get quotation marks around the cell values that have the added comma.

    Thanks for all the help/suggestions.

  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: Adding commas to cell adds unwated quotes


  6. #6
    Forum Contributor
    Join Date
    09-25-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Adding commas to cell adds unwated quotes

    Thanks Again, but I am still having problems with the code.

    I tried the post you referenced, but it only copies the values. I need the commas as well as some text that is in the file.

+ 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