+ Reply to Thread
Results 1 to 9 of 9

Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dropdow

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Alberta,Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dropdow

    Good day all.
    Iam new to using excel and all it has to offer. I was wondering if anyone could help me. I would like to take a row of data and transfer it to sheet 2 once the guys select Yes from the drop down. If possible i would like to to leave sheet 1 and delete off it and only be on sheet 2. it is a small sheet it has a start date in column A and a finish date in column E. The Yes column is Column D. Once they select yes the date apears in column E and it is then completed. That is when i need it off sheet one and transfered to sheet 2. Any help is greatly appreciated.
    Thanks
    RR2105

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

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    Try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-09-2013
    Location
    Alberta,Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    This works well thank you. The only problem with it is you have to select the cell that says "YES" then hit enter to get it to transfer over to the other sheet. Also it does not remove the row that has been transfered to the second sheet. Is there a way to incorporate that into this.
    Thanks in advance for the help
    RR2105

  4. #4
    Registered User
    Join Date
    05-09-2013
    Location
    Alberta,Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    Sorry it works fine excpt it does not delete the row on sheet one after it transfers it to sheet 2. Is there a way for it to do that and it woud be perfect.
    Thanks
    RR2105

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

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    You indicated that they will be selecting "Yes" from a drop down. The supplied code will work when that "Yes" value is selected from the drop down since it triggers a worksheet change event. Getting it deleted that row can be accomplished by adding one line:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-09-2013
    Location
    Alberta,Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    I get an error now. Run-time error '13' Type Mismatch. If i click on debug it highlights the line in code that says If target.value = Yes then. If I click on END if transfers and deletes like it is supposed to. Is that because yes is a string?
    Thanks
    RR2105

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

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    Yeah that is my fault. I forgot to disable/enable "Enable Events". This should fix the problem:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-09-2013
    Location
    Alberta,Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    Thank you for all the help it is appreciated. It works perfect.
    RR2105

  9. #9
    Registered User
    Join Date
    05-09-2013
    Location
    Alberta,Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Getting a row in sheet 1 to transfer to sheet 2 when the word yes is selected in a dro

    I was wondering once It transfers it over to another sheet if a guy could get it to not copy duplicates according to the timestamp or some other way. I have applied this to other sheets and on the one once i hit the transfer button that i installed it transfers everything fine when it finds the string its looking for. The only problem is that once a day i hit the transfer button and every day it transfers everything even the ones it has already transfered. I would like it to skip the ones it already transfered if possible. Any thoughts?

    Thanks RR2105
    Last edited by RR2105; 05-27-2013 at 01:31 PM.

+ 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