Hi
Try the following code, which should work for any number of repeats.
Sub Dup_copy()
Dim a As Integer, b As Integer, c As Integer, lastrow As Integer
Let lastrow = Range("a65536").End(xlUp).Row
For a = 1 To lastrow
Let b = Application.CountIf(Range(Cells(1, 1), Cells(lastrow, 1)), Cells(a, 1).Value)
If b > 1 Then
For c = 2 To b
If Application.CountIf(Columns(c), Cells(a, 1).Value) = 0 Then
Let Cells(1, c).Offset(Application.CountA(Columns(c)), 0) = Cells(a, 1).Value
End If
Next c
End If
Next a
End Sub
Regards
Jeff
Bookmarks