+ Reply to Thread
Results 1 to 7 of 7

VBA to move column headers to rows

  1. #1
    Registered User
    Join Date
    05-21-2018
    Location
    USA
    MS-Off Ver
    MS2007
    Posts
    3

    VBA to move column headers to rows

    Hello All,

    This is my very first VBA and I am learning on-the-go here. I am trying to put a excel which is in the following format. (attachment 1)
    Sheet1.pdf



    I am trying to write something a macro/function that starts reading from Row1, column 1, and if the cell has "T" it writes the value and functionid to another sheet. So it looks like this:
    Sheet2.pdf

    This is whT I have, but it is not working as expected for me. I want to use index, and many other things - but right now even copy paste, is not working.

    Can anyone help me understand, how I can copy the cells for a match as we process every cell.

    VBA.pdf
    Last edited by SL1104; 05-21-2018 at 01:27 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: My first VBA _ Need help!

    Hi, welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )

    Also, Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: VBA to move column headers to rows

    the web site will not allow me to post.

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: VBA to move column headers to rows


  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: VBA to move column headers to rows

    I will try to post your code...


    hmm nope, I cannot post it either, I will ask the TT why not

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,609

    Re: VBA to move column headers to rows

    It's not accepting "select..." for some (sql) reason today: --> (Xelect...)
    Please Login or Register  to view this content.
    Ben Van Johnson

  7. #7
    Registered User
    Join Date
    05-21-2018
    Location
    USA
    MS-Off Ver
    MS2007
    Posts
    3

    Re: VBA to move column headers to rows

    Thank you! This was of great help!

+ 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