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

½Ð°Ý¨ÌÀx¦s®æ¼Æ­È±ø¥óÅã¥Ü¤å¦r¤Î­I´º¦âªº°ÝÃD

¼Ò²Õ¤Æ©O ¸Õ¸Õ¬Ý!

Function SetCellInfo(ByVal fCell As Variant, ByVal iColorIndex As Integer, ByVal fColorIndex As Integer, ByVal fBold As Boolean)
    fCell.Interior.ColorIndex = iColorIndex '
    fCell.Font.ColorIndex = fColorIndex
    fCell.Font.Bold = fBold
End Function

    'Dim Rng As Range ³o­ÓÅܼƬO¦h¾lªº!
    Dim F As Variant
   
    For Each F In ThisWorkbook.Sheets("sheet2").[b4:i15]
        If F > 800 Then
            Call SetCellInfo(F, 40, 3, True)
        ElseIf F > 500 And F <= 800 Then
            Call SetCellInfo(F, 36, 3, True)
        ElseIf F > 200 And F <= 500 Then
            Call SetCellInfo(F, 19, 3, True)
        ElseIf F < -200 And F >= -500 Then
            Call SetCellInfo(F, 24, 11, True)
        ElseIf F < -500 And F >= -800 Then
            Call SetCellInfo(F, 15, 11, True)
        ElseIf F < -800 Then
            Call SetCellInfo(F, 48, 11, True)
        Else
            Call SetCellInfo(F, 35, 1, False)
        End If
    Next F
­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

GBKEEª©¥D·P®¦­þ¡A§ÚÁÙ¯u¨S¬Ý¥X¨º¤@ÂI¡A­Y¤£¬O¤Á³Îµ{¦¡¦æ¦Û¤vÀ³¸Ó¥i¥Hµo²{ªº¨ì¡C
¶{ª©¥Dªº¼Ò²Õ¤Æ³]­p¤]¬O³ô ...
yuch8663 µoªí©ó 2010/8/9 10:04 PM


±z¥i¥H¥ÎF8³v¨B¶]¶]¬Ý ¦³°ÝÃD¦A¤W¨Ó°Ý~

Book1.zip (12.93 KB)

­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

        ÀR«ä¦Û¦b : §Ñ¥\¤£§Ñ¹L¡A§Ñ«è¤£§Ñ®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD