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

[µo°Ý] ½Ð±Ð¤@¤UExcel 2003¦pªG¶W¹L3­Ó®æ¦¡¤Æ±ø¥ó¬O§_ÁÙ¦³¿ìªk¥i¥H¼W³]®æ¦¡¤Æ±ø¥ó¡H

[µo°Ý] ½Ð±Ð¤@¤UExcel 2003¦pªG¶W¹L3­Ó®æ¦¡¤Æ±ø¥ó¬O§_ÁÙ¦³¿ìªk¥i¥H¼W³]®æ¦¡¤Æ±ø¥ó¡H

¤½¥qªº¹q¸£Excel¥u¦³2003ª©¡A§Ú·Q­n¦Û¤v¦L»s¤£¦PÃC¦âÃþ§Oªº¼ÐÅÒ¡A§Æ±æ§Q¥Î®æ¦¡¤Æ±ø¥ó±N¨C¤Ñªº¸ê®Æ¥á¨ìExcel´N¯à¨Ì¤£¦PÃþ§O¦L¥X¬Û¹ïÀ³ÃC¦âªº¼ÐÅÒ¡A¦ý¬OExcel 2003ª©ªº®æ¦¡¤Æ±ø¥ó¥u¯à³]©w3­Ó¡A¤£ª¾¹D¦bExcel 2003¤¤¦³¨S¦³¤°»ò¤è¦¡¥i¥H¼W¥[®æ¦¡¤Æ±ø¥óªº³]©w¡A¥t¥~§Ú¸ÕµÛ¥Î´M§ä¨Ã¨ú¥Nªº¤è¦¡¿ý¦¨¥¨¶°¡A¨ú¥Nªº¦pªG¬O­È´N¥i¥H¦¨¥\¡A¦ý¨ú¥Nªº¦pªG¬O¤½¦¡«K¤£¦æ¡A¤£ª¾¹D¦³¨S¦³§ó¦nªº¤è¦¡¥i¥H¨Ï¥Î¡H Excel 2003 ¶W¹L3­Ó®æ¦¡¤Æ±ø¥ó.rar (11.61 KB)

DEAR SIR
¦p¤UÃþ¦ü½d¨Ò   ¥i¥ÎVBA ³B²z     

Private Sub Worksheet_Change(ByVal Target As Range)
    For Each x In Range("b1:b10")
    Select Case x
    Case Is < 0: x.Interior.ColorIndex = 42: x.Font.ColorIndex = 6
    Case Is < 10: x.Interior.ColorIndex = 40: x.Font.ColorIndex = 5
    Case Is < 20: x.Interior.ColorIndex = 35: x.Font.ColorIndex = 4
    Case Is < 30: x.Interior.ColorIndex = 34: x.Font.ColorIndex = 3
    Case Is < 40: x.Interior.ColorIndex = 33: x.Font.ColorIndex = 2
    Case Is < 50: x.Interior.ColorIndex = 32: x.Font.ColorIndex = 1
    Case Is > 50: x.Interior.ColorIndex = 6: x.Font.ColorIndex = 42
   End Select
   Next
End Sub
ù

TOP

¦^´_ 2# rouber590324


    §Ú§â¼Æ­È§ï¦¨¤å¦r¤]¥i¥H¹F¨ì·Q­nªº¥\¯à¡A¯u¬OÁÂÁ±zªºÀ°¦£¡AÀɮצpªþ¡A´£¨Ñ°Ñ¦Ò¡A·P®¦¡C

Excel 2003 ¶W¹L3­Ó®æ¦¡¤Æ±ø¥ó.rar (12.91 KB)

TOP

        ÀR«ä¦Û¦b : §g¤l¥ß«í§Ó¡A¤p¤H«í¥ß§Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD