+ Reply to Thread
Results 1 to 5 of 5

Cut/Delete row and paste to different sheet based on cell value in column

  1. #1
    Registered User
    Join Date
    03-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Cut/Delete row and paste to different sheet based on cell value in column

    OK..I think this is pretty straight forward but so many answers out there it has me confused
    What I am trying to do is this...based on a value ( Letter "þ" )in one sheet in column G I need have the row cut and pasted to a new sheet ( "Complete" ) The cut rows need to be added to the next available row at the end of the ( Complete) sheet. The other thing that needs to happen is I can't have blank rows on the first sheet so when the row is cut it also needs to delete the blank row or not leave a blank row on the first sheet.

    Any help would be greatly apprciated.

    thanks

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

    Re: Cut/Delete row and paste to different sheet based on cell value in column

    Put this code in sheet 1

    Please Login or Register  to view this content.
    Last edited by AB33; 01-04-2013 at 01:37 PM.

  3. #3
    Registered User
    Join Date
    03-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Cut/Delete row and paste to different sheet based on cell value in column

    AB33, Sorry for the late response..Forgot I had asked this question of the forum and out of pocket for a bit. I would rather the code be based on a macro that I run but I think I can fix that. My issue right now is I am getting a mismatch error Run time error 13 on If Target.Value = "þ" Then

    Also not sure if this impacts it or not but the column font is a wingding that give me a check mark and I also have this double click macro on that column as well

    Please Login or Register  to view this content.
    Last edited by williamthomp; 01-04-2013 at 10:16 AM.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Cut/Delete row and paste to different sheet based on cell value in column

    Williamthomp,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

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

    Re: Cut/Delete row and paste to different sheet based on cell value in column

    William,
    The code can only be fired if you change the value of column "G".
    Please Login or Register  to view this content.
    You need to change the row which has value "þ" and see if the code throws an error
    Could you please post your book?

  6. #6
    Registered User
    Join Date
    03-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Cut/Delete row and paste to different sheet based on cell value in column

    AB33..I notice that it is working. It does cut and paste it onto the new sheet..But it still stops and gives me an error code of Run time error code 13 " Type mismatch. Was going to attach the file but dont see the attach icon ..am I missing something?

+ 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