I am using the code below which i got off this website in excel 2010.
When I try running the macros gives me the "compile error: expected end sub".
I am new to this.
Please help.
Sub Transfer()
Function konkat(ByVal r As Range, Optional s As String = ",")
For Each c In r
konkat = konkat & c.Value & s
Next
konkat = Left(konkat, Len(konkat) - Len(s))
End Function
When I try running the macros gives me the "compile error: expected end sub".
I am new to this.
Please help.
Sub Transfer()
Function konkat(ByVal r As Range, Optional s As String = ",")
For Each c In r
konkat = konkat & c.Value & s
Next
konkat = Left(konkat, Len(konkat) - Len(s))
End Function