Hi,
The following code deletes the duplicate rows from the worksheet.
How could I change it so that it filters the duplicate rows instead of deleting.
Any help on this would be kindly appreciated.Sub FilterDups() Dim x As Long Dim LastRow As Long LastRow = Range("A1048756").End(xlUp).Row For x = LastRow To 1 Step -1 If Application.WorksheetFunction.CountIf(Range("A1:A" & x), Range("A" & x).Text) > 1 Then Range("A" & x).EntireRow.Delete End If Next x End Sub