OK, you have blank row on the top.
Sub Duplicates()
Dim x
With Sheets("GrundData")
With .Range("a2", .Range("a" & Rows.Count).End(xlUp))
x = Filter(.Parent.Evaluate("transpose(if(countif(" & .Address & "," & .Address & _
")=1,char(2)," & .Address & "&char(1)&row(" & .Address & ")))"), Chr(2), 0)
End With
End With
With Sheets("Dublettkontroll").Range("d5").Resize(UBound(x) + 1)
.CurrentRegion.ClearContents
If UBound(x) > -1 Then
.Value = Application.Transpose(x)
.TextToColumns Destination:=.Cells(1), _
Other:=True, OtherChar:=Chr(1)
Else
MsgBox "No duplicates"
End If
End With
End Sub
Bookmarks