+ Reply to Thread
Results 1 to 11 of 11

cut and paste entire row to another worksheet if cell contains a specific text

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    cut and paste entire row to another worksheet if cell contains a specific text

    Hello everybody

    i hope someone could give me a code...

    i have a table of my daily tasks list. What i wish to do is when i marked the task as completed (column g) , the entire row will be cut and pasted to another file, so that only pending tasks remain on my file.. I want the new file to be the storage of all my completed tasks.

    I hope somebody could help me.

    looking forward to hear from anybody.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    send a sample and a macro can be written to automatically initiate the cut/paste action when the cell in column G is marked

  3. #3
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    hello

    please see attached sample file.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    You have not specified in which sheet would the complete task be copied. They are posted in to sheet4. The code resides in sheet1, not in a standard module.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    hello ab33,

    thanks for the reply. i tried using your file but it seems is not doing anything at all. or may be i am doing somethieng wrong. can you explain to me how it works? how will the entire row be transferred to another sheet?

    would it be ok if the entire row is copied to another excel file... completed.xlsx

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    Maybe:

    Please Login or Register  to view this content.
    Note: You need to create a Sheet called Completed first.

  7. #7
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    hi john

    it is working ok... but instead of copying it to another sheet.. can i copy it in a new file? also can we do it copy paste special the entire row?

  8. #8
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague, Czech rep.
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    138

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    Hi melody10,

    IŽm wondering you gonna create the file every time you mark something complete? I guess no. So first you wanna create the storage file where you wanna keep those executed tasks and you want to provide these handsome guys that are writing the code for you with path to this file so they can implement what youŽre asking for

    Best regards

    Soul

    PS -- if for some reason you are not receiving what youŽre looking for IŽll check on this later and help you out...;-)

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    Quote Originally Posted by melody10 View Post
    hi john

    it is working ok... but instead of copying it to another sheet.. can i copy it in a new file? also can we do it copy paste special the entire row?
    Try this.

    Please Login or Register  to view this content.
    You need to change New File in the Code to the name of the File that you want the data transferred. Also it should have a Sheet name Completed. The New File should be open.

  10. #10
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    works pefectly! thank you sooo much

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: cut and paste entire row to another worksheet if cell contains a specific text

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule #9.

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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. Search for specific date range, copy entire row and paste to new worksheet
    By turias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2013, 03:57 PM
  2. [SOLVED] Search multiple worksheets for Text String, copy and paste entire row into new worksheet
    By spulliam2000 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-15-2013, 07:52 PM
  3. Replies: 0
    Last Post: 11-06-2012, 06:44 PM
  4. [SOLVED] Count Occurrences of specific text within cells in an entire worksheet?
    By audiofreak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-30-2012, 12:34 PM
  5. Cut and paste entire row into new worksheet based on cell value
    By langle_j in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2012, 09:52 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