I am attempting to copy/paste rows from one worksheet to another if the B column contains 'Complete'. There is a drop down list in the column so I do not know if that is affecting anything but it is not copying/pasting all rows into the new worksheet. When I run it, only 4 of the 7 total rows that contain 'Complete' transfer over. This is the code I am using:
Sub TransferComplete()
Dim o As Range
Dim p As Integer
Dim Source As Worksheet
Dim Target As Worksheet
' Change worksheet designations as needed
Set Source = ActiveWorkbook.Worksheets("In Progress")
Set Target = ActiveWorkbook.Worksheets("Complete")
p = 3 ' To Start copying to row 3 in target sheet
For Each o In Source.Range("B3:B1000")
If o = "Complete" Then
Source.Rows(o.Row).Copy Target.Rows(p)
Source.Rows(o.Row).EntireRow.Delete
p = p + 1
End If
Next o
End Sub
I just want it to automatically transfer rows to the new worksheet when 'Complete' is selected from the drop down list. Any and all help is greatly appreciated!
Thank you.