English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-02-13 04:00:46 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

If you can't get it done using a formula... use a macro instead. If your values are in a col (say Col A), from row x to x+29 do this:

Sub ConcatAll()
For rowCount = x to x+29
concatenated = concatenated & range("A" & rowCount)
Next rowCount
Range("B1") = concatenated
End Sub

if your values are in a single row (say row 1) spanned across cols starting from Col A, then do this:

Sub ConcatAll()
startCol=65
For colCount = startCol to startCol + 29
concatenated = concatenated & Range(Chr(startCol) & 1)
Next colCount
Range("B1") = concatenated
End Sub

Either of the above will concatenate and populate cell B1 with the value.

.

2007-02-13 04:59:56 · answer #1 · answered by SmartSpider 4 · 0 0

Although less elegant than coding a macro you can also perform the concatenation in stages.

Concatenate 5 groups of 6 cells. Then perform a final concatenation of these results. You may hide the intermediate concatenation cells displaying only the final group concatenation..

2007-02-13 17:08:22 · answer #2 · answered by MarkG 7 · 0 0

fedest.com, questions and answers