Thread: VBA copy/paste
View Single Post
 
Old 05-14-2018, 03:07 AM
Urraco Urraco is offline Windows 8 Office 2016
Advanced Beginner
 
Join Date: Apr 2018
Posts: 30
Urraco is on a distinguished road
Default

Quote:
Originally Posted by p45cal View Post
It may not need a macro; if you have a version of Excel which has the TextJoin worksheet function you could have in G2:
=TEXTJOIN(" ",TRUE,A2:E4)
or:
=TEXTJOIN(" ",FALSE,A2:E4)
depending upon how you want to treat empty cells.


Then if you want to lose the formula you can copy, paste-special, Values afterwards.
TextJoin is a good solution but my excel does not have this function.
Thanks for the reply.
Reply With Quote