- ©«¤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-12-18
|
¦^´_ 4# oak0723-1
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, Drr, Brr(), Crr(), T, T1, T2
Tm = Timer
Arr = Range([¸ê®Æ®w!b6], [¸ê®Æ®w!b65536].End(3))
Drr = Sheets("¸ê®Æ®w").Range("i6:ama" & UBound(Arr) + 5)
[¤ñ¹ï!b6].Resize(UBound(Arr)) = Arr
ReDim Brr(1 To UBound(Arr), 1 To 1000)
ReDim Crr(1 To UBound(Arr), 1 To 1)
With Sheets("¤ñ¹ï")
Arr = .Range("i3:alt3")
For i = 1 To UBound(Drr)
Crr(i, 1) = 0
For j = 1 To UBound(Arr, 2)
T = Arr(1, j): T1 = Drr(i, j): T2 = Drr(i, j + 6)
If T = "" Or T1 = "" Then Brr(i, j) = "": GoTo 99
If T = T2 Then
Brr(i, j) = 1: Crr(i, 1) = Crr(i, 1) + 1
Else
Brr(i, j) = 0
End If
99: Next j
Next i
.Range("h6").Resize(UBound(Crr)) = Crr
.Range("i6").Resize(UBound(Brr), UBound(Brr, 2)) = Brr
End With
MsgBox Timer - Tm
End Sub |
|