- ©«¤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
|
¦^´_ 1# caichen3
¤u§@ªí: ³]©w®æ¦¡¤Æ±ø¥ó ¨BÆJ
¿ï¾Ü½d³ò [G3:G13]
«ü¥O: ®æ¦¡->³]©w®æ¦¡¤Æ±ø¥ó
±ø¥ó¤@ ¿ï¾Ü ¤½¦¡:=OR(G3=$M$1,G3=$M$2,G3=$M$3)
«ö¤U ®æ¦¡: ¥i¿ï¾Ü ¦r«¬, ¥~®Ø, ¹Ï¼Ë ³]©w¤§- Option Explicit
- Sub Ex() 'Vba ³]©w®æ¦¡¤Æ±ø¥ó
- With Sheet2.Range("G3:G13")
- .FormatConditions.Delete
- .FormatConditions.Add Type:=xlExpression, Formula1:= _
- "=OR(G3=$M$1,G3=$M$2,G3=$M$3)"
- .FormatConditions(1).Interior.Color = RGB(255, 0, 0)
- End With
- End Sub
- Sub Ex1() 'קï§Aªºµ{¦¡½X
- Dim E As Range
- With Sheet2
- For Each E In .Range("G3:G13")
- If E = .[M1] Or E = .[M2] Or E = .[M3] Then
- E.Interior.Color = RGB(255, 0, 0)
- Else
- E.Interior.ColorIndex = xlNone
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|