+ Reply to Thread
Results 1 to 2 of 2

Paste Special Transpose in larger mode

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    46

    Paste Special Transpose in larger mode

    Hello. I need to do Paste Special Transpose function in larger mode. I need Transpose three cells at once.
    Transpose.png

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Paste Special Transpose in larger mode

    Hi -

    You can try this one;
    Sub test()
    Dim rng(), rng2(),i as long, ii As long
    rng = Range("a1").currentregion
    ii = 0
    For i = 1 To UBound(rng) Step 3
        ReDim Preserve rng2(UBound(rng) / 3, 3)
        rng2(ii, 0) = rng(i, 1): rng2(ii, 1) = rng(i + 1, 1): rng2(ii, 2) = rng(i + 2, 1)
        ii = ii + 1
    Next
    Cells(1, 2).Resize(UBound(rng2), 3) = rng2
    Erase rng: Erase rng2
    End Sub
    Regards,
    Event

+ Reply to Thread

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