+ Reply to Thread
Results 1 to 7 of 7

transposing data via a VBA macro

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    16

    transposing data via a VBA macro

    Hi All,

    Going to try and explain this the best way I can.

    The attached sheet has data in sheet1 which needs to be transposed into sheet2 format (final outcome).
    A VBA macro the macro running the rest of the work is not in the same worksheet as the data sheets are created each day and it is required that the macros are not sent with the final output to the user. This part I can do and the read of the text file is working fine (all be it a bit clunky due to lack of experience, but it works )

    The following needs to be considered.
    1) There may not be data for a weekday but the script needs to deal with that and continue.
    2) The sheet2 needs to be in week order and date order.

    Any help would be much appreciated.

    Regards

    stubyh
    Attached Files Attached Files

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

    Re: transposing data via a VBA macro

    Try the attached.
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: transposing data via a VBA macro

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

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    16

    [SOLVED] Re: transposing data via a VBA macro

    to jindon and nilem

    Many thanks for your responce both work excelent.

    Regards

    Stubyh

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: transposing data via a VBA macro

    Hi, sorry to mark this as unsolved but I need to ask further questions.

    The original code from jindon is the one I am using, however I cant get it to go passed the 52 weeks, the sheet now contains two years worth of data and will continue to grow as the years progress. How do I make it so that it goes past the 52 weeks of the first year this case 2011 and then into 2012 data.

    any help would be apreciated

    regards

    stubyh
    Attached Files Attached Files

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

    Re: transposing data via a VBA macro

    Try this one.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: transposing data via a VBA macro

    jindon

    many thanks for the quick responce,

    regards

    stubyh

+ 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