- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ samwang
¤u§@¢±¡@ 9 16 17 35
¤ñ¹ï¡@¤u§@¢°¡@®Ú¾Ú¢ÓÄ檺¢°¡@¤W±À¢±¢¯²Õ¡×¢Õ¢µ¡G¢Ø¢±¢´
¦p¦³ ...
duck_simon µoªí©ó 2022-5-4 18:31
¤£¦n·N«ä¨ç¼Æ¤£·|¡AVBA¦p¤U½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, xD, T$, n%, n1%, i%, j%
Set xD = CreateObject("Scripting.Dictionary")
With Sheets(2)
Arr = .[c27:f27]
For j = 1 To 4: T = Arr(1, j): xD(T) = 1: Next
End With
With Sheets(1)
Arr = .Range("g25").CurrentRegion
For i = UBound(Arr) To 1 Step -1
n = n + 1: If n > 20 Then GoTo 99
For j = 1 To 4
T = Arr(i, j): If xD(T) = 1 Then n1 = n1 + 1
If n1 >= 3 Then Sheets(2).[g27] = "X": Exit Sub
Next
n1 = 0
99: Next
End With
End Sub |
|