I'm trying to copy every row in this table where column O contains the value "proceed" from a sheet named "Initials" into a sheet called "Finals". I'm not too familiar with VBA and Excel in general so I was going off of an Excel tutorial on YouTube. However I keep getting the error "Run-time error: '438': Object doesn't support this property or method". I've included the code I'm working with for reference. I've seen similar questions but nothing quite like what I need help with. Any help is appreciated. Thanks!
Sub CopyRowBasedOnCellValue()
Dim xRg As Range
Dim xCell As Range
Dim A As Long
Dim B As Long
Dim C As Long
A = Worksheets("Initials").UsedRange.Rows.Count
B = Worksheets("Finals").UsedRange.Rows.Count
If B = 1 Then
If Application.WorkseetFunction.CountA(Worksheets("Finals").UsedRange) = 0 Then B = 0
End If
Set xRg = Worksheets("Initials").Range("O1:O" & A)
On Error Resume Next
Application.ScreenUpdating = False
For C = 1 To xRg.Count
If CStr(xRg(O).Value) = "Proceed" Then
xRg(O).EntireRow.Copy Destination:=Worksheets("Finals").Range("A" & B + 1)
B = B + 1
End If
Worksheets("Finals").UsedRange.RemoveDuplicates Columns:=1, Header:=x1Yes
Worksheets("Finals").UsedRange.SpecialCells(x1CellTypeBlanks).Delete x1ShiftUp
Next
Application.ScreenUpdating = True
End Sub