Results 1 to 13 of 13

Thread: VBA to Concatenate Multi-Value Cells

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    snb
    Guest
    You might have made that slight amendment yourself.

    Sub M_snb()
       sn = Cells(1).CurrentRegion.Resize(, 5)
       
       For j = 2 To UBound(sn)
          sp = Split(Join(Application.Index(sn, j), ";"), ";")
          ReDim st((UBound(sp) - 1) \ 4)
    
          For jj = 0 To UBound(sp) - 1
            st(jj Mod (UBound(st) + 1)) = st(jj Mod (UBound(st) + 1)) & "\" & sp(jj)
          Next
          sn(j, 5) = Join(st)
       Next
       
       Cells(1).CurrentRegion.Resize(, 5) = sn
    End Sub
    Attached Files Attached Files
    Last edited by snb; 05-27-2015 at 12:28 PM.

Tags for this Thread

Posting Permissions

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