For Bob Duke Concatination UDF

P

PeterAtherton

Hi Bob

Maybe this function might be of some use. I don't know about your formula
though.

Function BigConcat(Data) As String
Dim c, str As String, temp As String
Dim l As Integer, addr As String, msg

For Each c In Data
l = Len(c) + l: r = c.Row: col = c.Column
If l > 1024 Then
Set addr = Cells(r, col - 1)
BigConcat = str
alert = MsgBox("Value: " & temp & Chr(10) _
& "Cell " & addr.Address, , "Last cell Included in Display!")
Exit Function
End If
temp = c
str = str & c
BigConcat = str
End Function

Regards
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top