Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
sub joiner()
Dim s as string s=Range("a1").value Dim i as integer for i = 1 to 26 s = s & "~" & range("a1").offset(0,i).value next i range("a10").value = s end sub "shortstop" wrote: Excel 2003 is my operating platform. I have data in a row of my spreadsheet. A1:Z1 for example. I'd like to concatenate it in VBA Code separated by a tilde "~" and have VBA put the result in cell A10. The code snippet below would suffice, I assume. However, it seems terribly inefficient. Range("A10").Value = Range("A1") & "~" & Range("B1") ........................... & "~" & Range("AZ1") Can somebody provide guidance to make my code efficient. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Concatentate text and insert blank line | Excel Worksheet Functions | |||
Using Concatentate in Formula | Excel Discussion (Misc queries) | |||
Concatentate Join Identifier | Excel Worksheet Functions | |||
LookUp and Concatentate | Excel Worksheet Functions | |||
Concatentate a formula with a variable sheet name. | Excel Programming |