+ Reply to Thread
Results 1 to 7 of 7

Transpose rows to column and insert new rows to fill in data

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Transpose rows to column and insert new rows to fill in data

    Hello,
    I have 4 or more fix columns need to retain and fill down the data once transpose done. However, the VBA script that I obtained from internet only allow me to fill down two columns. Can someone help to modify?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Transpose rows to column and insert new rows to fill in data

    See if this is how you want.
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Transpose rows to column and insert new rows to fill in data

    An alternative solution is to load your range/table into Power Query and unpivot the category columns. Here is the Mcode to do that. I just noticed that you are using XL 2003. Power Query is not available to you. My apologies. But if you are using 2010 or later it is. If that is the case, please update your profile to reflect the proper version of Excel that you are employing.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: Transpose rows to column and insert new rows to fill in data

    If I have extra fix columns, how can I manage these extra columns? I am not familiar VBA.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Transpose rows to column and insert new rows to fill in data

    You MUST select the header row as well.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: Transpose rows to column and insert new rows to fill in data

    The script stop at this stage If myCols = 0 Then Exit Sub. No result coming out.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Transpose rows to column and insert new rows to fill in data

    If you are running the code on the file which is different from the one you uploaded, it could happen.

    You should have uploaded the file that you are using.

+ 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] VBA Insert multiply rows and Transpose from Row to Column
    By TCookie in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-14-2015, 02:44 PM
  2. [SOLVED] MACRO to insert rows and transpose values into new rows.
    By b3ntran in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2014, 02:17 AM
  3. Insert rows based on a cell value and Fill down column A
    By blaxor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2014, 04:54 AM
  4. Insert rows and then transpose data from a horizontal row into a column
    By Winescape in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2014, 11:45 PM
  5. [SOLVED] Need Help w/Macro that Insert Rows, Copy Row, and Transpose to Column
    By hiroki3296 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2012, 10:27 AM
  6. [SOLVED] Insert Rows and Transpose Data
    By sks262 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2012, 01:29 AM
  7. Insert rows, transpose data from column in to rows, in steps
    By mchevalier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2012, 08:14 PM

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