Sub GetDuplicates()
Dim sh As Worksheet
Dim rData As Range
Dim col As Integer
Dim sL As String
Dim i As Integer
Application.ScreenUpdating = False
Set sh = Sheets(1) '<< Assumes the source data is the first sheet
On Error Resume Next
Application.DisplayAlerts = False
Sheets("Duplicates").Delete
On Error GoTo 0
Sheets.Add(After:=sh).Name = "Duplicates"
sh.Select
sh.Columns("A:A").Insert
Set rData = sh.Range("A1").CurrentRegion
For col = 1 To 7 '<< Change the 7 to the amount of letters listed below
'====================================================================
'Note: Column letters must be one up from actual columns to evaluate
'EG: Search col A for duplicates - Type "B", search col D - Type "E"
sL = Choose(col, "F", "G", "I", "O", "P", "Q", "R")
'====================================================================
rData.Columns(1).Formula = "=COUNTIF($" & sL & "$1:$" & sL & "$" & rData.Rows.Count & "," & sL & "1)>1"
rData.Cells(1).Value = "Filter"
With rData
.AutoFilter 1, True
On Error Resume Next
.Offset(1).Resize(.Rows.Count - 1).SpecialCells(xlCellTypeVisible).EntireRow.Copy _
Sheets("Duplicates").Cells(Rows.Count, 1).End(xlUp).Offset(1)
.Offset(1).Resize(.Rows.Count - 1).SpecialCells(xlCellTypeVisible).EntireRow.Delete
On Error GoTo 0
End With
sh.AutoFilterMode = False
Next col
sh.Columns(1).Delete
Sheets("Duplicates").Columns(1).Delete
sh.Rows(1).Copy Sheets("Duplicates").Rows(1)
Application.ScreenUpdating = True
MsgBox "Duplicate data moved to the Duplicates sheet.", vbInformation
End Sub