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

[µo°Ý] ¦Û°Ê§P©w¦¨ÁZ¦X®æ¤Î¤£¦X®æ¡A¦ý¤£¬O¨Ì¤À¼Æ§P©w

¦p¤U

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
For M = 4 To 9
If Sheet1.Cells(M, 6).Font.ColorIndex = 3 Or Sheet1.Cells(M, 8).Font.ColorIndex = 3 Or Sheet1.Cells(M, 10).Font.ColorIndex = 3 Or Sheet1.Cells(M, 12).Font.ColorIndex = 3 Then
  Sheet1.Cells(M, 14) = "¤£¦X®æ"
  Else
  Sheet1.Cells(M, 14) = "¦X®æ"
End If
Next
End Sub
ù

TOP

+¤£¦X®æ¦Û°Ê¨q¬õ¦â

Sub AA()
For M = 4 To 9
If Sheet1.Cells(M, 6).Font.ColorIndex = 3 Or Sheet1.Cells(M, 8).Font.ColorIndex = 3 Or Sheet1.Cells(M, 10).Font.ColorIndex = 3 Or Sheet1.Cells(M, 12).Font.ColorIndex = 3 Then
  Sheet1.Cells(M, 14) = "¤£¦X®æ"
  Sheet1.Cells(M, 14).Font.ColorIndex = 3
  Else
  Sheet1.Cells(M, 14) = "¦X®æ"
End If
Next

End Sub
ù

TOP

DEAR SIR
1±N¦p¤UÂлs¨ì§A¦³¸ê®Æ¤§SHEET1 "¤u§@ªí¤¤"´NOK°Õ
  ¤£­n¸m©óMODULE


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
For M = 4 To 9
If Sheet1.Cells(M, 6).Font.ColorIndex = 3 Or Sheet1.Cells(M, 8).Font.ColorIndex = 3 Or Sheet1.Cells(M, 10).Font.ColorIndex = 3 Or Sheet1.Cells(M, 12).Font.ColorIndex = 3 Then
  Sheet1.Cells(M, 14) = "¤£¦X®æ"
  Sheet1.Cells(M, 14).Font.ColorIndex = 3
  Else
  Sheet1.Cells(M, 14) = "¦X®æ"
  Sheet1.Cells(M, 14).Font.ColorIndex = 1
End If
Next
End Sub
ù

TOP

§Ú¤½¥qÀɶÇÀÉ®×»P¹Ï¤ù¥\¯à-¤£µM¦­¤W¶ÇZIPÀɵ¹§A©Ô
§Ú¬Ý¬OªO¥»°ÝÃD
§Ú±N SHEET1 §ï ¤u§@ªí1 ¦A¸Õ¸Õ
¦]¥¦§ä¤£¨ì SHEET1 ¬G¨q¥X BUG

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
For M = 4 To 9
If ¤u§@ªí1.Cells(M, 6).Font.ColorIndex = 3 Or ¤u§@ªí1.Cells(M, 8).Font.ColorIndex = 3 Or ¤u§@ªí1.Cells(M, 10).Font.ColorIndex = 3 Or ¤u§@ªí1.Cells(M, 12).Font.ColorIndex = 3 Then
  ¤u§@ªí1.Cells(M, 14) = "¤£¦X®æ"
  ¤u§@ªí1.Cells(M, 14).Font.ColorIndex = 3
  Else
  ¤u§@ªí1.Cells(M, 14) = "¦X®æ"
  ¤u§@ªí1.Cells(M, 14).Font.ColorIndex = 1
End If
Next
End Sub
ù

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD