Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo errorHandler1
rangeStr = "A1:A" + CStr(Target.Cells(1, 1).Row() - 1)
result = Application.WorksheetFunction.Match(Target.Cells(1, 1).Value, Range(rangeStr), 0)
If result > 0 Then
MsgBox ("重复:" + Target.Cells(1, 1).Value + CStr(Count))
Target.Activate
End If
Exit Sub
errorHandler1:
'do nothing
Exit Sub
End Sub