- ©«¤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-12-18
|
¥»©«³Ì«á¥Ñ samwang ©ó 2022-7-25 07:47 ½s¿è
¦^´_ samwang
¤Ó·PÁ±z¤F...samwang
C ©Î D Äæ¥X²{¬Û¦P¼Æ¾Ú®É...§R°£¤U¦C¼Æ¾Ú¤§«áÀx¦s®æ·|¦³¶ñº¡¤§ ...
cypd µoªí©ó 2022-7-24 20:23
½Ð´ú¸Õ¬Ý¬Ý¡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
If C = 0 Then Exit Sub
Set xD = CreateObject("Scripting.Dictionary")
With Sheets("«È¤á°ò¥»¸ê®Æ")
.Unprotect Password:="1234" '¸Ñ«OÅ@¡A±K½X¦Û¦æקï
Arr = .Range(.Cells(1, C), .Cells(Rows.Count, C).End(3))
.Range(.Cells(1, C), .Cells(Rows.Count, C)).Font.ColorIndex = 0
.Range(.Cells(1, C), .Cells(Rows.Count, C)).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
.Unprotect Password:="1234" '«OÅ@¡A±K½X¦Û¦æקï
End With
End Sub |
|