+ Reply to Thread
Results 1 to 5 of 5

Need Macro to move data from one worksheet to another

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need Macro to move data from one worksheet to another

    I've been browsing the forum most of the day searching for macros that fit the problem I am trying to accomplish. A few have been close or I haven't been able to figure out how to apply them.

    I am trying to set up a workbook to act sort of like a cheap Access for users that are comfortable with Excel. They need to be able to enter data into the "Study Leads" worksheet but based on the final column "a trigger" that selection moves the data to a different worksheet and deletes it from the "Study Leads" sheet.

    The functionality would need to work on all worksheets other than the last worksheet labeled "declined", as the other worksheets are stages of enrollment.

    I have attached the basic workbook I created so it has a clean slate for macroing with a line of test data.

    Any help is much appreciated as I can't seem to not grasp what I've found on the forum already.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need Macro to move data from one worksheet to another

    Put this in each worksheet change event. Should allow you to move rows between sheets when you choose a different trigger:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-28-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need Macro to move data from one worksheet to another

    This worked near flawlessly. I couldn't figure this out for anything. Thank you very much.

    One and only flaw is this. Once I enter the data in and select the trigger, my drop down functionality disappears from the rest of the worksheet that data was "deleted" from. So if a user is entering multiple lines then the drop downs will no longer be available after the first trigger has occurred.

    Any fix for that? Could just be how I have the data validation for those cells set up.



    Edit: Note that I gave a rep point for the help as is normal forum protocol.
    Last edited by sugarweasel; 10-28-2013 at 03:38 PM.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need Macro to move data from one worksheet to another

    In your example the data validation isn't set up for any rows other than the first one. Did you check to make sure that it is set up on your primary workbook?

  5. #5
    Registered User
    Join Date
    10-28-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need Macro to move data from one worksheet to another

    I'm looking and testing now. I see that when a trigger is activated it deletes the row and moves them up. So once I have set up validation for a specific number of cells it will eventually run out. I guess I just need to set up where the validation cells are infinite. The script still works as intended.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro in excel to move a row of data from one worksheet to another worksheet
    By wmdowty in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-26-2013, 11:06 AM
  2. Replies: 0
    Last Post: 01-24-2013, 02:35 AM
  3. [SOLVED] Move data to another worksheet and automatically run macro.
    By ghoshl1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-12-2012, 02:16 PM
  4. Replies: 5
    Last Post: 02-27-2012, 10:17 AM
  5. Macro to move data into a seperate worksheet in order
    By Vikkyann in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2007, 04:13 AM

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