- ©«¤l
- 406
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 453
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2015-2-7
- ³Ì«áµn¿ý
- 2021-7-31
|
¥»©«³Ì«á¥Ñ n7822123 ©ó 2021-7-31 13:27 ½s¿è
¦^´_ 15# ã´£³¡ªL
¦P¼Ëªº·§©À§ï¼g·Ç¤jµ{¦¡¡A¦ý¬O³t«×¤ñ¸ûºC (¤£¹LÁÙ¬O¤ñ¯Â¶]°j°é§Ö)
±À´ú»ÝnÃB¥~°µ¦r¦ê¦ê±µ¡B©î¤À µ¥¹Bºâ¡A©Ò¥H©ìºC³t«×!
¯Âºé¥Î¦r¨å®r®M¡A³t«×¯uªº¨Sªk¤ñ¡A¯u¬O¼F®`!
³o·§©ÀÁÙÆZ®e©ö²z¸Ñªº¡A¹³¬O¥ý«Ø¥ß¤@ӥؿý¡A¤£¥ÎÅý¹q¸£¨CÓ¥h§ä
¦¹°µªk¡A§Ú²Ä¤@Ó·Q¨ìªº¬O ¡A¥i¥HÀ³¥Î¦b ¦h¼h¤U©Ô¦¡¿ï³æ
Sub TEST_AT()
Dim Arr, Brr, Crr(2), xD(2), T$, i&, j%, k, Km%, TM
TM = Timer
Crr(1) = Range([L!m1], [L!a1].Cells(Rows.Count, 1).End(xlUp))
Crr(2) = Range([R!m1], [R!a1].Cells(Rows.Count, 1).End(xlUp))
For j = 1 To 2
Set xD(j) = CreateObject("Scripting.Dictionary")
For i = 2 To UBound(Crr(j))
T = Left(Crr(j)(i, j + 9), 7)
xD(j)(T) = xD(j)(T) & " " & i
Next i
Next j
Arr = Range([§Ç¸¹!a1], [§Ç¸¹!a1].Cells(Rows.Count, 1).End(xlUp))
ReDim Brr(1 To UBound(Arr), 1 To 2)
Brr(1, 1) = "¤u³æ¸¹½X": Brr(1, 2) = "¦ì¸m"
For i = 2 To UBound(Arr)
T$ = Left(Arr(i, 1), 7): Km = 0
For j = 1 To 2
For Each k In Split(Trim(xD(j)(T)))
k = Val(k)
If Crr(j)(k, 9 + j) <= Arr(i, 1) And Crr(j)(k, 11 + j) >= Arr(i, 1) Then
Brr(i, 1) = Crr(j)(k, j): Brr(i, 2) = Mid("LR", j, 1) & k
Km = 1: Exit For
End If
Next
If Km = 1 Then Exit For
j01: Next j
i01: Next i
[§Ç¸¹!b1].Resize(UBound(Brr), 2) = Brr
MsgBox Timer - TM
End Sub |
|