+ Reply to Thread
Results 1 to 3 of 3

Need autorun Macro that copies data from Master sheet to second sheet based on condition

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Augusta
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need autorun Macro that copies data from Master sheet to second sheet based on condition

    I have been tasked with creating an excel file that has a master sheet, which automatically copies select cells within a row (not the entire row) based on the value of a cell within the row. I have found tons on macros that copy the entire row, but I am struggling with how to identify within the code which cells to copy and how to get them to their appropriate destination on a second worskheet.

    It would also be nice to have this macro run automatically as soon as the value Y (from a list) is entered, rather than using a short cut. (The people that will be using the file are not computer savy.)

    I have attached a sample of the file I will be creating. The data thats entered into the columns will need to be copied to the other sheet if the user selects y in column Y.

    Any help would be greatly appreciated.

    Thanks

    Update: The macro runs great, however we are running into a little bit of a problem. If the answer in column Y is changed to from Y to N, the data still stays on the CMS sheet even though the answer is now N. Also, for example if that same line of data is then changed backd to Y (in column Y), a duplicate entry of that line of data is then added to the CMS sheet. Is there an easy way for me to fix this?

    Thanks again
    Attached Files Attached Files
    Last edited by angie18a; 05-07-2013 at 11:39 AM. Reason: Error with update of data using macro

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Need autorun Macro that copies data from Master sheet to second sheet based on conditi

    Right Click on the sheet tab name for Restraint Reportable Notes, choose View code. Enter the following code into the dialog box that opens.

    Let me know if it works

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    Augusta
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need autorun Macro that copies data from Master sheet to second sheet based on conditi

    Forgive the delayed response, I was out sick a few days. Wow! yes it seems to work well. Thanks so much BigBas!

+ 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