- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28

|
¥»©«³Ì«á¥Ñ kimbal ©ó 2013-10-3 23:34 ½s¿è
¦^´_ 1# ji12345678 - Sub TEST()
- Dim color As Long
- Application.Calculation = xlCalculationManual
- Application.ScreenUpdating = False
-
- Sheets("Á`ªí").Copy after:=Sheets(1)
- With ActiveSheet.Range("B3")
- Range(.Address, .End(xlToRight).End(xlDown)).ClearFormats
- Range(.Address, .End(xlToRight).Offset(0, -1).End(xlDown)).Select
- Selection.Copy
- .Offset(0, 1).PasteSpecial operation:=xlPasteSpecialOperationSubtract
-
-
- For Each Rng In Range(.Offset(0, 1), .End(xlToRight).End(xlDown))
- color = 0
- If Rng.Row >= 12 And Rng.Row <= 17 Then
- If Rng.Value > 0 Then
- color = 15773696
- ElseIf Rng.Value < 0 Then
- color = 52479
- End If
- Else
- If Rng.Value > 0 Then
- color = 255
- ElseIf Rng.Value < 0 Then
- color = 5296274
- End If
- End If
- If color > 0 Then
- With Rng.Interior
- .Pattern = xlSolid
- .PatternColorIndex = xlAutomatic
- .color = color
- End With
- End If
- Next
- Range(.Address, .End(xlDown)).Clear
- End With
- Application.ScreenUpdating = True
- Application.Calculation = xlCalculationAutomatic
- End Sub
½Æ»s¥N½X |
|