- ©«¤l
- 6
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 19
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW¥x¤¤
- µù¥U®É¶¡
- 2016-10-24
- ³Ì«áµn¿ý
- 2017-8-22
|
Sub ¦P¦CµÛ¦â()
Dim Y%, J%, Z%
Y = Cells(Rows.Count, 1).End(3).Row
For J = 2 To Y
For Z = 2 To 7
If Cells(J, Z) = Cells(J, Z + 8) And Cells(J, Z) = Cells(J, Z + 16) And Cells(J, Z) = Cells(J, Z + 24) Then
Cells(J, Z).Interior.ColorIndex = 8
Cells(J, Z + 8).Interior.ColorIndex = 8
Cells(J, Z + 16).Interior.ColorIndex = 8
Cells(J, Z + 24).Interior.ColorIndex = 8
ElseIf Cells(J, Z) = Cells(J, Z + 8) And Cells(J, Z) = Cells(J, Z + 16) Then
Cells(J, Z).Interior.ColorIndex = 4
Cells(J, Z + 8).Interior.ColorIndex = 4
Cells(J, Z + 16).Interior.ColorIndex = 4
ElseIf Cells(J, Z) = Cells(J, Z + 8) Then
Cells(J, Z).Interior.ColorIndex = 6
Cells(J, Z + 8).Interior.ColorIndex = 6
Else: GoTo 101
End If
101: Next
Next
End Sub
¦P¦C¬Û¦PµÛ¦â.rar (196.62 KB)
|
|