+ Reply to Thread
Results 1 to 9 of 9

How to cut and paste into another worksheet a row marked complete?

  1. #1
    Registered User
    Join Date
    04-25-2014
    Location
    seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    How to cut and paste into another worksheet a row marked complete?

    Hello all,

    I think this must be a simple request. I have never used VBA in my life, but in Excel 2013 workbook titled "To Do", in my worksheet titled "Tasks" is a list of tasks. In column A (titled "Complete") is a dropdown list where a person can choose either nothing, or YES, for when a task has been completed.

    the range of Tasks is from A5:I901

    Once they choose Complete and save the worksheet, I would like:
    1) this row to move to another worksheet in the same workbook titled "Complete"
    2) the row to be deleted from the initial Tasks worksheet
    3) all other rows shifting up so there are no blank rows

    the way the Completed tasks should be sorted, I don't care, as long as it is systematic in where the next Completed item is placed (either each one pasted after the last one completed, or the most recently completed item showing at the top of the Completed list - no preference.)

    4) and then I need to know how to save this as a macro and make it run.
    5) I'm hoping other users will open the workbook and all rows marked complete the last time someone was in the sheet will be moved automatically without having to do anything to run the macro manually.

    Thank you in advance!

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How to cut and paste into another worksheet a row marked complete?

    See if this code helps.....
    Please Login or Register  to view this content.
    Open VBA editor (Alt+F11)--> Right click on ThisWorkbook (on left side panel of VBA editor) --> View Code --> Paste the above code on opened code window--> Save As Excel Macro-Enabled Workbook
    Last edited by sktneer; 04-25-2014 at 10:24 PM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    04-25-2014
    Location
    seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to cut and paste into another worksheet a row marked complete?

    Dear SKTNEER. THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! What a wonderful Monday - I turned on my computer at work, and my problem was solved. I had to make one edit, where the dropdown list shows YES instead of Complete, so once I replaced

    Set ws1 = ThisWorkbook.Sheets("Complete")
    with
    Set ws1 = ThisWorkbook.Sheets("YES")

    it worked perfectly. THANK YOU THANK YOU THANK YOU!!!!!!! I am so grateful for your time.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How to cut and paste into another worksheet a row marked complete?

    You're welcome. Glad to help you and thanks for the feedback.
    Since you are new to the forum so just to tell you that if that takes care of your question, please mark your thread as solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

  5. #5
    Registered User
    Join Date
    04-25-2014
    Location
    seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to cut and paste into another worksheet a row marked complete?

    SKTNEER, One more question. If I move the data in Column A to Column H, I am unsure about how to adjust the VBA code. Wherever you had "A" in the code you gave me, I changed it to "H", but nothing happened.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How to cut and paste into another worksheet a row marked complete?

    Change this line of code to

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-25-2014
    Location
    seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to cut and paste into another worksheet a row marked complete?

    yep, that works! do you accept payment as a thank you for your advice?

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How to cut and paste into another worksheet a row marked complete?

    You did not open this thread in commercial services. So no question of accepting a payment here. I am glad that I could help.
    Thanks for the feedback.

  9. #9
    Registered User
    Join Date
    04-25-2014
    Location
    seattle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to cut and paste into another worksheet a row marked complete?

    OK, well thank you again then.

+ 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] Copy row from one worksheet to another if marked by X
    By ghoshl1 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-12-2012, 10:37 AM
  2. Replies: 4
    Last Post: 06-13-2012, 01:34 AM
  3. Outlook 2007 rule to move "marked as complete" messages to a specified folder
    By cybnexcel in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 03-24-2011, 11:28 AM
  4. How to display check marked rows on second worksheet
    By lukengruven in forum Excel General
    Replies: 1
    Last Post: 09-16-2010, 10:57 AM
  5. Complete:Copy and Paste
    By Paul H in forum Excel General
    Replies: 1
    Last Post: 04-27-2006, 12:35 PM

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