|
参与一下。。。- Sub ykcbf() '//2024.3.18
- Set d = CreateObject("Scripting.Dictionary")
- arr = Me.[a1].CurrentRegion
- brr = Me.[e1].CurrentRegion
- ReDim zrr(1 To UBound(arr), 1 To 3)
- For i = 3 To UBound(brr)
- s = CStr(brr(i, 1)) & "|" & brr(i, 2)
- d(s) = d(s) + 1
- Next
- For i = 3 To UBound(arr)
- s = CStr(arr(i, 1)) & "|" & arr(i, 2)
- d(s) = d(s) + 1
- Next
- For i = 3 To UBound(arr)
- s = CStr(arr(i, 1)) & "|" & arr(i, 2)
- If d(s) = 1 Then
- m = m + 1
- For j = 1 To UBound(arr, 2)
- zrr(m, j) = arr(i, j)
- Next
- End If
- Next
- Columns(9).NumberFormatLocal = "@"
- [i3].Resize(m, 3) = zrr
- Set d = Nothing
- End Sub
复制代码
|
评分
-
2
查看全部评分
-
|