+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Macro needed to transfer data between tabs

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro needed to transfer data between tabs

    Hello!

    This is my first post for excel help! I have a document that has a tab titled "Capital List" and then 10 other tabs titled "year 1" through "year 10". Column E is titled "need level" on every sheet. On the first sheet, a need level numerical value is going to be assigned from 1-10 for each item/row, and I need the entire row to be transferred automatically to the correct sheet. If the need level is "1", I need that whole row to be copied and pasted on the "year 1" page, and so on. I believe from my limited research that I might need to use a macro formula to achieve this, but i'm not sure. Can anyone help me solve this?? I have attached an example document I plan on using to this post. Please help if you can! Thanks,

    Scott
    Attached Files Attached Files

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

    Re: Macro needed to transfer data between tabs

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button.

    Ensure that the sheetnames are having the same format. For e.g. Year3 and Year6 have a space between the word "Year" and the number. Ensure that its consistent across the workbook.
    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]

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

    Re: Macro needed to transfer data between tabs

    Incase you run the macro again, the data in the Capital List tab will be appended to the end of each sheet. If you need to clear the data in all the sheets (except Capital List) before re-running the macro, then use this code instead of the code in post 2 -
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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