Private Sub CommandButton1_Click() Dim i&, a, b, c, ds As Object, ds1 As Object, ds2 As Object Set ds = CreateObject("Scripting.Dictionary") Set ds1 = CreateObject("Scripting.Dictionary") Set ds2 = CreateObject("Scripting.Dictionary") a = [a1:a60000] b = [b1:b60000] c = [c1:c60000] For i = 1 To 60000 ds(a(i, 1)) = "" Next i For i = 1 To 60000 If ds.exists(b(i, 1)) Then ds1(b(i, 1)) = "" Next i For i = 1 To 60000 If ds1.exists(c(i, 1)) Then ds2(c(i, 1)) = "" Next i Cells(1, 4).Resize(ds2.Count, 1) = Application.Transpose(ds2.keys) Set ds = Nothing Set ds1 = Nothing Set ds2 = Nothing End Sub 先抛块砖吧。 |