ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] 2~4­Ó°Ï°ìªº¦PÄæ¦ì¬Û¦P¼Æ¦r¼Ð¥Ü©³¦â»yªk¡C

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)
cjw

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD