- ©«¤l
- 45
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 51
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2013-4-16
- ³Ì«áµn¿ý
- 2013-12-30
|
¦^´_ 1# samwang
³oÓ¤]¥i¥H- Private Sub Worksheet_Change(ByVal Target As Range)
- If Target.count > 1 Then Exit Sub
- If Application.WorksheetFunction.CountIf(Range(Cells(2, Target.Column), Cells(Target.Row, Target.Column)), Target) > 1 Then
- Alert = MsgBox(Cells(1, Target.Column) & " Already Exist - Click Yes do delete", vbYesNo)
- If Alert = vbYes Then
- Application.Undo
- Else
- Target.Interior.ColorIndex = 6
- Exit Sub
- End If
- End If
- End Sub
½Æ»s¥N½X |
|