- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 14
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-6
|
¦U¦ì¤j¤j¦n ¦pÃD ¥Ñ©ó«È¤á ¼t°ÓÁc¦h ¨CÓ¤H»Ý¨D¤S¤£¤@¼Ë ±`±`¦]¬°¿é¤J¿ù»~¦WºÙ¾ÉP¥Í²£¿ù»~
Àµ½Ð¤j¤jÀ°¦£«ü ...
et010884 µoªí©ó 2013-12-10 14:58
¥H¤Uµ{¦¡©ñ¦b ThisWorkBook ¤º- Private Sub Workbook_Open()
- Dim lRow&
-
- Set dD = CreateObject("Scripting.Dictionary")
- lRow = 3
- With Sheets("¤u§@ªí1")
- Do While .Cells(lRow, 2) <> ""
- If .Cells(lRow, 3) <> "" Then
- If dD(CStr(.Cells(lRow, 2))) = "" Then
- dD(CStr(.Cells(lRow, 2))) = CStr(.Cells(lRow, 3))
- Else
- If dD(CStr(.Cells(lRow, 2))) <> .Cells(lRow, 3) Then
- .Cells(lRow, 3).Interior.ColorIndex = 37
- MsgBox ("¤ñ¹ï¿ù»~")
- End If
- End If
- Else
- .Cells(lRow, 3).Interior.ColorIndex = 37
- MsgBox ("¨S¦³²£«~¦WºÙ")
- End If
- lRow = lRow + 1
- Loop
- End With
- End Sub
½Æ»s¥N½X ¥H¤Uµ{¦¡©ñ¦b Module ¤º¥H¤Uµ{¦¡©ñ¦b Sheet1 ¤º- Private Sub Worksheet_Change(ByVal Target As Range)
- If Target.Count = 1 Then
- With Target
- If (.Column = 2 Or .Column = 3) And .Offset(, 2 - .Column) <> "" And .Offset(, 3 - .Column) <> "" Then
- If dD(CStr(.Offset(, 2 - .Column))) <> .Offset(, 3 - .Column) Then
- .Interior.ColorIndex = 37
- MsgBox ("¿é¤J¿ù»~")
- .Select
- Else
- .Interior.ColorIndex = -4142
- End If
- End If
- End With
- End If
- End Sub
½Æ»s¥N½X
²£«~¤ñ¹ï-a.zip (13.49 KB)
|
|