+ Reply to Thread
Results 1 to 4 of 4

VBA transpose rows to columns

Hybrid View

  1. #1
    Registered User
    Join Date
    07-03-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Angry VBA transpose rows to columns

    Hello great minds I am hoping you can help me.

    I'm trying to take the attached sample and transpose the data. But I need some help with the code.

    I've done it before with a range that I put in for one row at a time.I have also put that code in the sample file I uploaded. But I need to have this code find the end of each row and copy that data and paste transpose and then copy the total amount in a different cell and paste it next to all the transposed data (See attachment). The original data needs to move either into the same worksheet to columns A, B & C or to a new sheet that part doesn't matter.

    Any help or advice would be great. I am still learning VBA.
    Attached Files Attached Files

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

    Re: VBA transpose rows to columns

    The code works on an active sheet. The cursor has to be on the sheet you wish to run and the output is on new sheet created by the code, but I can change it for the out put to be on the same sheet.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-03-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: VBA transpose rows to columns

    You ROCK!!!! This is just what I was looking for

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

    Re: VBA transpose rows to columns

    On the same sheet out put
    Attached Files Attached Files

+ 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. [SOLVED] Formula to transpose rows to new columns and columns to new rows in Excel
    By bjnockle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-26-2014, 06:28 PM
  2. Replies: 1
    Last Post: 01-24-2014, 06:20 PM
  3. Replies: 14
    Last Post: 08-01-2013, 08:48 AM
  4. [SOLVED] Transpose Columns to Rows (automatically inserts new rows)
    By kichkichkich in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-28-2012, 05:38 AM
  5. Replies: 2
    Last Post: 01-01-2012, 05:54 AM

Tags for this Thread

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