+ Reply to Thread
Results 1 to 14 of 14

Move Row to Another Sheet Based on Dropdown Value

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Move Row to Another Sheet Based on Dropdown Value

    Hello,

    Thanks in advance for your help!

    In the attached spreadsheet I am trying to figure out how to move a row from the "Active" worksheet to the "Completed" worksheet when the dropdown in column K is changed to complete. I have tried a couple examples on some forums but have not been able to get them to work.

    Thanks Again!
    Matt
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Move Row to Another Sheet Based on Dropdown Value

    Forgot to add. I'm assuming that the row will be cut and pasted to the new sheet. If that is the case I would like to delete the unused row from the original worksheet.

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

    Re: Move Row to Another Sheet Based on Dropdown Value

    Hi Matt,
    try this (in an "Active" worksheet module)
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Move Row to Another Sheet Based on Dropdown Value

    Would it be too much to ask for some advice on how to make this work. I am fairly new at this and I am not sure exactly where to put this code and how to execute it. Thanks for your patience with a newbie

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

    Re: Move Row to Another Sheet Based on Dropdown Value

    here is your file
    try to change the values in column K
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Move Row to Another Sheet Based on Dropdown Value

    You are a credit to humanity! Works great. Now I am going to make myself understand how it works.

  7. #7
    Registered User
    Join Date
    06-11-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Move Row to Another Sheet Based on Dropdown Value

    Hi Nilem

    this is exactly what I have been trying to do. I have tried to incorporate your code into my worksheet however keeps asking for a Macro name when I try and run it
    Untitled.png

    any ideas

    thanks
    Lizzy

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

    Re: Move Row to Another Sheet Based on Dropdown Value

    Hi Lizzy,
    this code is in a WorkSheet module and works automatically when a Worksheet_Change event occurs, so it does not appear in the list of macros.

  9. #9
    Registered User
    Join Date
    08-09-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Move Row to Another Sheet Based on Dropdown Value

    nilem,

    I noticed that when it copies from one sheet to another it does not appear to keep my data validation rules (dropdown list). Is there an easy solution for this or would it just be easier to eliminate the dropdown list? Thanks again for your help. I was able to duplicate what you did in the completed worksheet to send a row back to the active sheet. Now I'm just trying to break down the code line by line so that I understand the whole thing.

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

    Re: Move Row to Another Sheet Based on Dropdown Value

    Hi Matt,
    look at this line in the code
    Please Login or Register  to view this content.
    here we only transfer values. But you can copy a row (with drop-down lists) like this
    Please Login or Register  to view this content.
    just in case, here is your file
    Attached Files Attached Files
    Last edited by nilem; 02-05-2015 at 12:46 AM. Reason: file added

  11. #11
    Registered User
    Join Date
    06-11-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Move Row to Another Sheet Based on Dropdown Value

    this is brilliant, thank you Nilem!!!

  12. #12
    Registered User
    Join Date
    01-25-2017
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    1

    Re: Move Row to Another Sheet Based on Dropdown Value

    Hi Nilem,

    What if you have multiple choices in drop down that you want the same thing to happen for each drop down to go to a differnt tab? Like initiated, in process, finalizing and complete?

  13. #13
    Registered User
    Join Date
    08-01-2017
    Location
    usa
    MS-Off Ver
    2010
    Posts
    7

    Re: Move Row to Another Sheet Based on Dropdown Value

    Im trying to do the same thing - except when you choose the "Responsible Party" in column M it will move that row
    to the sheet with that persons name on it.
    Attached Files Attached Files

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Move Row to Another Sheet Based on Dropdown Value

    Charge124 welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Hide columns on one sheet based on dropdown on the original sheet
    By dangerdavedsp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 10:08 AM
  2. [SOLVED] Populate data on another sheet based on dropdown criteria from the first sheet
    By ARod0726 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2013, 01:36 PM
  3. Replies: 7
    Last Post: 12-16-2012, 04:24 PM
  4. Need a Dropdown list that can edit cells on another sheet based on sheet name
    By draegen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2012, 02:46 PM
  5. Excel 2007. Macro to move data based on dropdown list.
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2012, 10:52 AM

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