+ Reply to Thread
Results 1 to 4 of 4

Adding comma to string

  1. #1
    Registered User
    Join Date
    12-09-2011
    Location
    Sioux Falls, South Dakota
    MS-Off Ver
    Excel 2007
    Posts
    46

    Adding comma to string

    Hey all,
    I need a little help adding commas to this string. When I run this code below I get the result, A-(BCD)-(BCDEF). What i want is A-(B,C,D)-(B,C,D,E,F). I tried adding a join to it but keep getting a type mismatch error. Any help would be appreciated.

    thanks
    jeremy


    Please Login or Register  to view this content.
    Last edited by jharaldson; 08-19-2014 at 01:15 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Adding comma to string

    Please Login or Register  to view this content.

    Something like this, im not in excel at the mo so havent tested.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    18,785

    Re: Adding comma to string

    This should do
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-09-2011
    Location
    Sioux Falls, South Dakota
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Adding comma to string

    thanks jindon

+ 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. Please Help - split a string having both comma (,) and semicolon(;)
    By Chandan.jha in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2012, 01:53 AM
  2. Comma separated string
    By ESF in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2011, 06:39 AM
  3. Comma Separation Indian String with Dr. Cr.
    By aronyo in forum Excel General
    Replies: 4
    Last Post: 11-28-2010, 06:43 AM
  4. dot / comma and string to double conversion
    By snaggy^^ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2006, 04:00 PM
  5. Macro to find a comma in a string
    By Chuck in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-23-2005, 11:05 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