- ©«¤l
- 154
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 200
- ÂI¦W
- 31
- §@·~¨t²Î
- windwos 7
- ³nÅ骩¥»
- 64bit
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2017-5-29
- ³Ì«áµn¿ý
- 2024-11-28
|
¥»©«³Ì«á¥Ñ quickfixer ©ó 2021-9-5 20:57 ½s¿è
¦^´_ 6# av8d
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim xA As Range, xR As Range
Cells.Interior.Pattern = 0
If Target.Column = 3 Then
Set xA = [A4:G1000]
If Intersect(xA, Target) Is Nothing Then Exit Sub
For Each xR In xA.Rows
If Not Intersect(xR, Target) Is Nothing Then
If Cells(xR.Row, 3) <> "" Then
xR.Interior.Color = RGB(240, 255, 240)
Else
Cells(xR.Row, 3).Interior.Color = RGB(200, 200, 240)
End If
End If
Next
End If
End Sub |
|