Results 1 to 3 of 3

Excel 2007 : Concatenate

Threaded View

  1. #2
    Registered User
    Join Date
    07-15-2010
    Location
    Daegu, Korea
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Concatenate

    hi..
    it's simple user defined function
    check attachment please!

    Function MyConcat(rngX As Range, rngY As Range, Optional strD As String = ",") As String
    Dim intX As Integer
    Dim strTmp As String
    
    If rngX.Count <> rngY.Count Then
       MyConcat = "Oooops"
       Exit Function
    End If
    
    For intX = 1 To rngX.Count
       strTmp = strTmp & " " & rngX(intX) & Format(rngY(intX), "(0.00)") & strD
    Next
    MyConcat = Left$(strTmp, Len(strTmp) - 1)
    End Function
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1