- ©«¤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
|
¦^´_ 7# yanto913 - Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
- With Sh
- For i = 1 To 22
- .ChartObjects("Chart 1").Activate
- ActiveChart.SeriesCollection(1).Points(i).Select
- Select Case .Cells(i + 1, 7)
- Case "Return"
- j = 3 '¬õ
- Case "Remove"
- j = 21 'µµ
- Case "IDLE"
- j = 6 '¶À
- Case "Prod"
- j = 10 'ºñ
- Case Else
- j = 2 '¥Õ
- End Select
- Selection.Interior.ColorIndex = j
- Next
- End With
- End Sub
- ''''''''*************************************
- Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
- With Sh
- For i = 1 To 22
- .ChartObjects("Chart 1").Activate
- ActiveChart.SeriesCollection(1).Points(i).Select
- If .Cells(i + 1, 7) = "Return" Then
- j = 3 '¬õ
- ElseIf .Cells(i + 1, 7) = "Remove" Then
- j = 21 'µµ
- ElseIf .Cells(i + 1, 7) = "IDLE" Then
- j = 6 '¶À
- ElseIf .Cells(i + 1, 7) = "Prod" Then
- j = 10 'ºñ
- Else
- j = 2 '¥Õ
- End If
- Selection.Interior.ColorIndex = j
- Next
- End With
- End Sub
½Æ»s¥N½X |
|