- ©«¤l
- 519
- ¥DÃD
- 54
- ºëµØ
- 0
- ¿n¤À
- 595
- ÂI¦W
- 251
- §@·~¨t²Î
- win 10
- ³nÅ骩¥»
- []
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-19
- ³Ì«áµn¿ý
- 2024-11-17
|
¦^´_ 1# starry1314
¸ê®Æ¦h¡A¸Õ¥Î³oÓ- Option Base 1
- Option Explicit
- Sub µæ¦âpºâ()
- Dim i&, j%, k%
- Dim aa '°Ï°ì¡Bµæ¦â¡B¼Æ¶q ¸ê®Æ
- Dim bb ''µæ¦â
- Dim cc$ '°Ï¤À±ø¥ó
- Dim dd '·j´Mµ²ªG
-
- Sheets("¤u§@ªí1").Activate
- aa = Range("A3:C" & [A2].End(xlDown).Row)
- bb = Range("F2:F" & [F2].End(xlDown).Row)
- Range("G2:G" & UBound(bb) + 1).Clear '²Ä2¦C¶}©lµæ¦â°Ï¤À
-
- ReDim dd(UBound(bb), 1)
- cc = "TQILP"
-
- For i = 1 To UBound(aa)
- If InStr(cc, Mid(aa(i, 1), 2, 1)) = 0 And aa(i, 3) = 2 Then
- For j = 1 To UBound(bb)
- If aa(i, 2) = bb(j, 1) Then dd(j, 1) = dd(j, 1) + 1: Exit For
- Next
- End If
- Next i
- Cells(2, "G").Resize(UBound(dd)) = dd
-
- End Sub
½Æ»s¥N½X |
|