Excel VBA Unión de variante matriz de variante
Public Function ConcatenateRange(pRange As Range, Optional pDelimiter As String = " ") As String
ConcatenateRange = Join(WorksheetFunction.Transpose(pRange.Value), pDelimiter)
End Function
Sub TestMe()
Dim r As Range
Set r = ThisWorkbook.Worksheets(1).Range("A1:A10")
MsgBox ConcatenateRange(r)
End Sub
VasteMonde