+ Reply to Thread
Results 1 to 6 of 6

join application.yranspose code to add a separator

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    join application.yranspose code to add a separator

    hi how can i add a separator when doin this code, instead of space i want to make it a comma.

    range("b1") = join(application.transpose(range("a1:a10)))

    thank ypu

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: join application.yranspose code to add a separator

    Try:-
    Please Login or Register  to view this content.

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

    Re: join application.yranspose code to add a separator

    Hi,

    How about replacing each space with a comma space like:

    range("b1")= worksheetfunction.substitute(join(application.transpose(range("a1:a10")))," ",", ")
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: join application.yranspose code to add a separator

    Why Worksheetfunction ?
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: join application.yranspose code to add a separator

    thanks all, 1st and 2nd answer went well the way i want, im nt sure the 3rd one it does not capture the comma

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: join application.yranspose code to add a separator

    Please Login or Register  to view this content.

+ 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. Expected: list separator or ) Error Code
    By caltman242 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2015, 11:16 AM
  2. Excel Petty Cash - Department and nominal code separator?
    By Isobel in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-22-2014, 06:19 PM
  3. Replies: 6
    Last Post: 05-22-2014, 03:50 PM
  4. [SOLVED] Want To Join Many Code With One Button With One InputBox
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-09-2014, 10:07 AM
  5. [SOLVED] VBA code to change the application.username and application.userinitials
    By jwlamb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 11:25 PM
  6. [SOLVED] Continue code on next line: Compile Error: expected list separator or )
    By ike609 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2012, 08:28 AM
  7. Separator to identify similar rows and code to add it
    By biteinsteig in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2011, 07:52 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