- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# metrostar
ÃC¦â ¤£¥i¬O³]©w®æ¦¡¤Æ±ø¥ó¤UªºÃC¦â- Sub Ex()
- Dim d As Object, C1, C2, e As Range, Ar()
- Set d = CreateObject("scripting.dictionary")
- With ActiveSheet
- C1 = .Range("E8").Interior.ColorIndex
- C2 = .Range("G8").Interior.ColorIndex
- d(C1) = Array(0, 0)
- d(C2) = Array(0, 0)
- For Each e In .Range("B2", .[B2].End(xlDown))
- If e(1, 0) >= .[E5] And e(1, 0) <= .[G5] Then
- If d.exists(e.Interior.ColorIndex) Then
- Ar = d(e.Interior.ColorIndex)
- Ar(0) = Ar(0) + 1
- Ar(1) = Ar(1) + e
- d(e.Interior.ColorIndex) = Ar
- End If
- End If
- Next
- .Range("E9") = d(C1)(0)
- .Range("E10") = d(C1)(1)
- .Range("G9") = d(C2)(0)
- .Range("G10") = d(C2)(1)
- End With
- End Sub
½Æ»s¥N½X |
|