- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 11# cypd
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Arr, xD, C%, T$, m&, i&
If Target.Column = 3 Then C = 3
If Target.Column = 4 Then C = 4
Set xD = CreateObject("Scripting.Dictionary")
With Sheets("«È¤á°ò¥»¸ê®Æ")
Arr = .Range(.Cells(1, C), .Cells(Rows.Count, C).End(3))
.Range(.Cells(1, C), .Cells(Rows.Count, C).End(3)).Font.ColorIndex = 0
.Range(.Cells(1, C), .Cells(Rows.Count, C).End(3)).Interior.ColorIndex = 0
For i = 1 To UBound(Arr)
T = Arr(i, 1)
If xD.Exists(T) Then
m = xD(T)
Cells(m, C).Font.ColorIndex = 3
Cells(m, C).Interior.ColorIndex = 36
Cells(i, C).Font.ColorIndex = 3
Cells(i, C).Interior.ColorIndex = 36
End If
xD(T) = i
Next
End With
End Sub |
|