Sub DupTime()
Dim cn As Object, rs As Object
Dim clcMde As Long
With Application
clcMde = .Calculation
.ScreenUpdating = False: .Calculation = xlCalculationManual
End With
With Sheets(1)
.Rows("1:1").Insert
.Range("A1").Value = "col1"
End With
Set cn = CreateObject("ADODB.Connection")
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
ThisWorkbook.FullName & ";Extended Properties=Excel 8.0;"
Set rs = CreateObject("ADODB.Recordset")
With rs
.Open "Select col1 From [Sheet1$a:a] group by col1 having Count(col1)>1", cn, 3, 3
Sheets(1).[b2].CopyFromRecordset rs
.Close
End With
cn.Close
Set rs = Nothing: Set cn = Nothing
Sheets(1).Rows("1:1").Delete
With Application
.Calculation = clcMde: .ScreenUpdating = True
End With
End Sub