+ Reply to Thread
Results 1 to 4 of 4

Help with Copy entire row and paste to new sheet

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help with Copy entire row and paste to new sheet

    Hello i have this code that copies an entire row and pastes it to a new sheet however it gets pasted to the top which is fine but it deletes my existing data
    The code will take column "L" and if the word "Complete" is selected within my drop down it moves it into the "Competed" tab.

    how can i get it to insert without overriding or insert into a blank row ?

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Column = 12 Then
    If Target.Value = "Complete" Then
    Target.EntireRow.Copy Worksheets("Completed").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
    Target.EntireRow.ClearContents


    End If
    End If

    End Sub

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Help with Copy entire row and paste to new sheet

    Hi.

    Try this code:

    Please Login or Register  to view this content.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Registered User
    Join Date
    01-23-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with Copy entire row and paste to new sheet

    thanks for the reply

    I tried the attached code however it is still doing the same thing , it is overriding my existing data on worksheets("Complete")

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

    Re: Help with Copy entire row and paste to new sheet

    You may not have data in column A, try this one

    Please Login or Register  to view this content.

+ 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