+ Reply to Thread
Results 1 to 4 of 4

Combine cells into CSV Text Sting

  1. #1
    Registered User
    Join Date
    09-28-2008
    Location
    Katy, TX
    Posts
    59

    Combine cells into CSV Text Sting

    I want to build a Comma Delimited String from a range of cells. I know I could use the concatenate function, but sometimes I want to add 100's of cells.

    What is a macro that would build a string of cells separated by a comma! It would also be nice to add a string to the beginning and end of the cells.

    g

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Combine cells into CSV Text Sting

    Perhaps,
    http://www.automateexcel.com/2005/10...ted_text_file/
    would do?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Combine cells into CSV Text Sting

    Maybe like so:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-03-2010 at 11:05 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    09-28-2008
    Location
    Katy, TX
    Posts
    59

    Re: Combine cells into CSV Text Sting

    Quote Originally Posted by JBeaucaire View Post
    Maybe like so:

    Please Login or Register  to view this content.
    JB,

    I like this option. Let me ask you if there is away to modify this so that I could put another field next to the range and use that as a number field to determine a number to filter on. Say for example the extra column would have 1 thru 9 and if I wanted to do a delimited string for the rows with a 3 in the 2nd column?

    Does this make sense?

+ 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