+ Reply to Thread
Results 1 to 3 of 3

Paste and transpose based Header

Hybrid View

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Paste and transpose based Header

    Hi

    i try copy and trasnpose data, but doesn't work.

    look my file

    Thanks
    Attached Files Attached Files
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Paste and transpose based Header

    I do not know the logic for transposing, but this code is hard coded

    Sub wRONG()
        Dim wsSrc As Worksheet
        Dim wsDst As Worksheet
         
        Set wsSrc = Worksheets("Planilha1")
        Set wsDst = Worksheets("Planilha2")
         wsSrc.Range("B2,D2,H2,J2,L2").Copy
       ' wsSrc.Range("B2,D2,F2,H2,J2,L2").Copy
        wsDst.Range("A4").PasteSpecial xlPasteValues, Transpose:=True
         
        wsSrc.Range("C2,E2,G2").Copy
        wsDst.Range("B4").PasteSpecial xlPasteValues, Transpose:=True
        
        wsSrc.Range("I2,K2,M2").Copy
        wsDst.Range("C6").PasteSpecial xlPasteValues, Transpose:=True
        
        Application.CutCopyMode = False
         
    End Sub

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Paste and transpose based Header

    i found it in http://www.ozgrid.com/forum/showthread.php?t=33951
    make by norie

    Thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 05-11-2012, 02:24 PM
  2. Advanced transpose - moving the header to the row.
    By bonna in forum Excel General
    Replies: 5
    Last Post: 05-09-2011, 04:51 PM
  3. Transpose & Paste data based on a count of cells from a range
    By sugondog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2009, 01:37 PM
  4. Replies: 2
    Last Post: 02-19-2007, 04:53 PM
  5. [SOLVED] Excel: custom header - is it possible to paste into header?
    By Maureen D. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-04-2005, 11:10 AM

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