Doppelter Eintrag
02.11.2002 14:41:36
Harald
Private Sub txt_znr_AfterUpdate()
Dim Bereich As Range
Dim Letzte As Long
If [e65536] = "" Then
Letzte = [e65536].End(xlUp).Row
Else
Letzte = 65536
End If
Set Bereich = ActiveSheet.Range("e2:e" & Letzte) _
.Find(txt_znr, lookat:=xlWhole)
If Bereich Is Nothing Then Exit Sub
MsgBox "Nummer '" & txt_znr & "' schon vorhanden!"
If vbOK = True Then
txt_znr.SetFocus
End If
End Sub