Sub AA()
On Error Resume Next
Dim Myarr()
For Each A In Range([C1], [C65536].End(xlUp))
If WorksheetFunction.CountIf(Range([C1], [C65536].End(xlUp)), A) > 1 Then
If WorksheetFunction.Match(A, Myarr, 0) = 0 Then
ReDim Preserve Myarr(i)
Set Myarr(i) = A
i = i + 1
End If
End If
Next
[A2].Resize(i, 1) = WorksheetFunction.Transpose(Myarr)
End Sub作者: starry1314 時間: 2015-5-18 16:02