- ©«¤l
- 254
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 310
- ÂI¦W
- 0
- §@·~¨t²Î
- W10
- ³nÅ骩¥»
- Excel 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2019-6-16
- ³Ì«áµn¿ý
- 2024-9-23
|
¦^´_ 6# ã´£³¡ªL
©êºp ¨S¦³µo²{·Ç¤j¦b´£¿ô§Ú .. ¦ý³o¼gªk ¨S¦³ jcchiang ¤j¤jªº¦n- Public Sub ¦r¨å¹B¥Î½m²ß()
- Application.ScreenUpdating = False
-
- Arr = [¯S¥ð¤Ñ¼Æ!A1].CurrentRegion
- Brr = [µn¿ý!A1].CurrentRegion
- Set xD = CreateObject("Scripting.Dictionary")
-
- For H = Brr(3, 2) To Brr(3, 2) + (Brr(3, 3) - 1)
- xD(H) = ""
- Next H
-
- For x = 2 To UBound(Arr)
-
- If Brr(1, 2) = Arr(x, 1) Then
-
- For Each D In xD
- R = Array(Arr(x, 1), Arr(x, 2), [µn¿ý!A3], D, 1, Arr(x, 8))
- If D >= Arr(x, 4) And D <= Arr(x, 5) Then
-
- For K = 1 To 6
- [list!A1].Cells(Rows.Count, K).End(xlUp)(2) = R(K - 1)
- Next K
- Sheets(2).Cells(3, 4) = Sheets(2).Cells(3, 4) & " " & Arr(x, 8)
- G = G + 1
- End If
- Next D
-
- If G <> 0 Then Sheets(1).Cells(x, 9) = Sheets(1).Cells(x, 9) + G
- End If
-
- G = 0
- Next x
-
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|