I got this code from this website but I'm having issue formatting it to how I need to use it. The code was initially only for Columns A and B, but I need it to work for Columns A:F, I fixed the top portion to refer to my Columns of A:F but I'm having issues with the Array, I'm new to VBA so I'm not 100% sure on how that even works, I just know I'm getting an error on that line. Here's my code.
Sub DeleteRows()
With ActiveWorkbook.Worksheets("MC RRRs")
Set Rng = Range("A:F").End(xlDown)
Rng.RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes
End With
End Sub