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
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
Try:-
Please Login or Register to view this content.
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.
Why Worksheetfunction ?
Please Login or Register to view this content.
thanks all, 1st and 2nd answer went well the way i want, im nt sure the 3rd one it does not capture the comma
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks