+ Reply to Thread
Results 1 to 6 of 6

Moving data between sheets

  1. #1
    Registered User
    Join Date
    08-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Moving data between sheets

    Good Afternoon Everyone!

    This is my first attempt at creating a macro to automate some manual tasks. Here is what I am trying to do...

    On the attached workbook there are 3 sheets. "Original" is the source of the data, "Example Report" is a mockup of the result I would like to see, and "Attempt" is what I am working on so far.

    My current strategy is to take the "original" items and remove all the things I don’t need, resulting in the list found on the "attempt" tab.

    Then my thoughts was that I would create a new sheet, and iterate through the list and every time I encounter "Name" make a new column on the sheet and continue working my way through. (See "Example Report")

    The trick is that I have no idea how to iterate through the list and move the data to a new sheet!

    Any assistance is greatly appreciated.

    -Kevin
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481

    Re: Moving data between sheets

    Posted code to wrong reply

  3. #3
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481

    Re: Moving data between sheets

    Something like this?

    Please Login or Register  to view this content.
    Note I have the code putting the output into a new sheet named "Report". you will need to make this sheet before running this code.

  4. #4
    Registered User
    Join Date
    08-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Moving data between sheets

    It is so close but i guess im not understanding part of the code, the output of the file does not appear to align correctly.

    When i look at the funcion you made (which is amazing btw) does it take into account that it will hit the "Name" row? it looks like the function skips every other line and adds the data that way. Will the line row be "extra" and cause the function to become unaligned?

    Thanks!
    Attached Files Attached Files
    Last edited by KevinK; 08-05-2009 at 11:09 AM. Reason: attached example

  5. #5
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481

    Re: Moving data between sheets

    Are you going to run the code on the data as it appears in the "MacroFun" worksheet in the latest file you posted?

    The code was written and tested using the "Original" worksheet in the first file you posted.

    If you go back to your original attachment and run the code on the data in the "Original" worksheet it should work.

  6. #6
    Registered User
    Join Date
    08-03-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Moving data between sheets

    You Sir are amazing! Thanks for all of your 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