+ Reply to Thread
Results 1 to 8 of 8

VBA from (multi) column to rows

  1. #1
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    VBA from (multi) column to rows

    I often see files built up in columns (week from A to Z)

    If you want to use a pivot table it's easier to re-arange the data from columns into rows.

    Who can help me with a macro which will do that for me.

    In the attached file, also is the desired result.

    For the example please post the result in another sheet.

    Do you have questions or comments, just ask or comment.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: VBA from (multi) column to rows

    Hi.

    Check this macro. I have a sheet "output" where you can verify the final data.

    VBA Qeuestion columns to rows Oeldere.xlsm
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA from (multi) column to rows

    as an option
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA from (multi) column to rows

    Thanks jraj1106 and nilem for the code.

    I'm gonna work with it at the end of the day.

    I will report the result at the end of the day.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA from (multi) column to rows

    @jraj1106


    Please Login or Register  to view this content.
    The code is working (and i think i understand most of the code). Thank you for that.

    I changed / added the blue text.

    I have a question on the red text.
    It seems to be the same line twice (or do I read it wrong).

    Why is that?
    Last edited by oeldere; 01-16-2013 at 03:54 PM.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA from (multi) column to rows

    @Nilem

    Your code is working perfectly. Thanks for that.

    But i'm unable to read (and understand) it well enough, to use it for future use.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: VBA from (multi) column to rows

    May as well post this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA from (multi) column to rows

    @Norie,

    Couldn't make it that way, but I think i'm able to read (and understand) the code.

    Thanks for posting your code.

+ 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