- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 3# a122
½m²ß¬Ý¬Ý- Option Explicit
- Sub Ex()
- With ActiveSheet.Range("B5:B100") '½d³òÀx¦s®æ
- .Cells(1).Activate '§@¥Î¤¤Àx¦s®æ,¬°¤½¦¡°Ñ·Ó°ò·ÇÂI.
- .FormatConditions.Delete
- .FormatConditions.Add Type:=xlExpression, Formula1:="=" & .Cells(1, 0).Address(0, 0) & ">" & .Cells(1).Address(0, 0) 'Formula1:="=A5>B5"
- .FormatConditions(1).Interior.ColorIndex = 6
- .FormatConditions.Add Type:=xlExpression, Formula1:="=" & .Cells(1, 0).Address(0, 0) & "<" & .Cells(1).Address(0, 0) 'Formula1:="=A5<B5"
- .FormatConditions(2).Interior.ColorIndex = 42
- End With
- End Sub
½Æ»s¥N½X |
|