Move row from sheet 2 to sheet 3 and reverts when required

Anar1046

New Member
Joined
Mar 29, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I have a spreadsheet Sheet 2 (called Punch List) and sheet 3 (called Items Completed ) both listing tasks with the list of a separate row; Column C lists the status of the Task, with the status being chosen from a drop-down list either Outstanding or Complete. Outstanding tasks indicates the yellow color and once chosen Complete from C drop-down list the color changes to white
I would like to have a macro that will copy the entire row and paste into Sheet 3 (called Items Completed ) when the status is changed to Complete and clear the contents of the cells on Sheet 2. reverts from sheet 3 to sheet 2 when chosen outstanding from C collum
The aim of this being of course to have all Outstanding tasks on sheet 2 and all Completed on sheet 3.

Column A-O
Row a lot, no specific numbers

Can someone help me)))

Thanks in advance
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
try this:

Punch List worksheet:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim lastrow As Integer
    Dim cell As Range
    For Each cell In Target
        If cell.Value = "Completed" Then
            With Sheets("Items Completed")
                lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
                cell.EntireRow.Copy .Range("a" & lastrow + 1)
                cell.EntireRow.Delete
            End With
        End If
    Next cell
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top