View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
shortstop shortstop is offline
external usenet poster
 
Posts: 1
Default Concatentate A1:AZ1 separated by ~

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.