Closed Thread
Results 1 to 6 of 6

Vb macro coding for transpose - complete coding?

  1. #1
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Vb macro coding for transpose - complete coding?

    I need vb macro coding for transpose of the columns into rows. For the completion of every Season, the AVG column has to be converted into row... please give me the complete coding.. I m also attaching the excel file for your easy understanding in which I worked out the output manually.
    pls do help me.. I need it very urgently...

    MY EXCEL FILE IS LIKE:
    SEASON AVG
    1969 1
    1969 1
    1969 1
    1969 1
    1969 1
    1969 1
    1969 1
    1969 1
    1969 0.97975
    1969 0.872875
    1969 0.831545455
    1969 0.925555556
    1969 1
    1969 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1970 1
    1971 1
    1971 1
    1971 1
    1971 1
    1971 1
    1971 1
    1971 1
    1971 0.857
    1971 0.515
    1971 0.5192
    1971 0.684555556
    1971 0.972777778
    1971 0.8864
    1972 1
    1972 1
    1972 1
    1972 1
    1972 1
    1972 0.9921
    1972 0.844166667
    1972 0.394142857
    1972 0.35875
    1972 0.987428571
    1972 1
    1972 1
    1972 1

    OUTPUT:
    I need output to be in the form as follows:
    1969 1 1 1 1 1 1 1 1 0.97975 0.872875 0.831545 0.925555556 1 1
    1970 1 1 1 1 1 1 1 1 1 1 1 1 1 -
    1971 1 1 1 1 1 1 1 0.857 0.515 0.5192 0.684556 0.972777778 0.8864 -
    1972 1 1 1 1 1 0.9921 0.844167 0.394143 0.35875 0.987429 1 1 1 -
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Vb macro coding for transpose - complete coding?

    Try this - results in sheet2:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-23-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Vb macro coding for transpose - complete coding?

    Dear StephenR,
    Thank you so much for your quick response... but the code is not working, it is showing sum error actually... error like runtime
    error :429
    and it is saying that activex component cannot create object. Please debug this error and send me the excel sheet.... please oblige and do the needful...tomorrow i need to submit this...pls do help me...

    Thanks & Regards,
    Dharani Suresh.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Vb macro coding for transpose - complete coding?


  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Vb macro coding for transpose - complete coding?

    Thank you John Davis.

    Dharani Suresh - why have you posted this twice on the same forum on the same day? You've had five people working on your problem and you have wasted my time.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Vb macro coding for transpose - complete coding?

    Dharani,

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vb macro coding for transpose - complete coding?
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-02-2013, 11:16 PM
  2. [SOLVED] CheckBox coding to work with ComboBox coding
    By JimExcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2013, 12:23 PM
  3. Coding and Reverse Coding a Questionnaire
    By lorr3 in forum Excel General
    Replies: 2
    Last Post: 11-18-2012, 06:43 PM
  4. Coding to make a transpose values button
    By Sally in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2006, 06:15 PM
  5. Implant macro coding into ASP coding
    By Sam yong in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2005, 06:05 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