Results 1 to 20 of 20

auto Deleting contents of certain columns when moving rows between sheets with one click

Threaded View

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    53

    auto Deleting contents of certain columns when moving rows between sheets with one click

    I currently have 2 sheet layers "COMPLETE" & "IN PROGRESS"

    When I change the status of a project on the "IN PROGRESS" sheet layer to 'complete' it moves the entire row to the top of the "COMPLETE" sheet layer.

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim rng3 As Range
        Dim rng4 As Range
       Set rng3 = Target.EntireRow
        If Target.Column = 1 Then
            On Error GoTo endit
           Application.EnableEvents = False
            If Target.Value = "Complete" Then
        Worksheets("Complete").Rows("4").Insert xlDown
        Set rng4 = Worksheets("Complete").Range("A4")
                With rng3
                    .Copy Destination:=rng4
                   .Delete
                End With
            End If
        End If
    endit:
        Application.EnableEvents = True
    End Sub

    I was wondering, how would I change the code so when it pastes the row onto the "COMPLETE" sheet layer, it only pastes cells from columns A:J ???

    Quick example attached with more detailed explination...


    ANY help is much appreciated!!!
    Attached Files Attached Files
    Last edited by R.Sloan; 04-17-2013 at 08:22 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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