- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 5# s7659109
Sub ¶×¤J()
Dim Arr, Brr, xD, r&, i&, j%, T$, xU As Range, N&
Set xD = CreateObject("Scripting.Dictionary")
Arr = Range([¶×Á`!C1], [¶×Á`!A65536].End(xlUp))
For i = 2 To UBound(Arr)
xD(Arr(i, 1) & Arr(i, 2) & Arr(i, 3)) = 1
Next i
Application.ScreenUpdating = False
With Sheets("data")
.Unprotect
.[A:K].Locked = False
Set xU = .[A1:K1]
r = .[A65536].End(xlUp).Row
Arr = .Range("A1:J" & r)
Brr = .Range("K1:K" & r)
For i = 2 To r
If Val(xD(Arr(i, 1) & Arr(i, 2) & Arr(i, 3))) <> 1 Then
N = N + 1
For j = 1 To 10: Arr(N, j) = Arr(i, j): Next
End If
Brr(i, 1) = "v"
Set xU = Union(xU, .Cells(i, 1).Resize(1, 11))
Next i
.[K1].Resize(r) = Brr
xU.Locked = True
.EnableAutoFilter = True
.Protect Contents:=True, UserInterfaceOnly:=True
End With
If N = 0 Then Exit Sub
[¶×Á`!B:B].NumberFormatLocal = "@"
[¶×Á`!A65536].End(xlUp)(2).Resize(N, 10) = Arr
End Sub
Xl0000235(¶×¤J).rar (18.51 KB)
|
|