- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 281
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-12-29
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2019-1-11 15:58 ½s¿è
¬O³o¼Ëªº·N«ä¶Ü?- Sub §ó·s¤é´Á_Click()
- ActiveObject = Application.Caller '±Ò°Êµ{§Çªº«ö¶s
- ActiveSheet.Shapes(ActiveObject).TextFrame.Characters.Text = "§ó·s¤é´Á¡G" & Now()
- Call ColorSUM
-
- End Sub
- Public Sub ColorSUM()
- Dim k, i As Integer, Cp(), Dic
- Set Dic = CreateObject("Scripting.Dictionary")
- Cp = Array(3, 13, 33, 4, 9, 22, 27, 1) '¦â½X
- For i = 0 To UBound(Cp)
- Dic(Cp(i)) = 0
- Next
-
- r = Range("F500").End(xlUp).Offset(3).Row '±q¯S©w¦ì¸m¶}©l¥[Á`
-
- For k = 9 To 33
- For i = 17 To Range("C17").End(xlDown).Row '´`¦CpºâÃC¦â¥[Á`
- Dic(Cells(i, k).Font.ColorIndex) = Dic(Cells(i, k).Font.ColorIndex) + Cells(i, k)
- Next
- For j = 0 To UBound(Cp)
- Cells(r, k).Offset(j).Font.ColorIndex = Cp(j)
- Cells(r, k).Offset(j).Font.Bold = True
- Cells(r, k).Offset(j) = Cells(5, k) + Dic(Cp(j))
- Dic(Cp(j)) = 0 'Âk¹s
- Next
- Next
-
- End Sub
½Æ»s¥N½X ¦^´_ 1# JT1221 |
|