For
Anzahl = 1
To
AnzahlTB
For
Zeile = ZeileMax
To
1
Step
-1
If
.Cells(Zeile, 1).Value = UserForm2.ComboBox1.Value
And
.Cells(Zeile, 13).Value = UserForm2.ComboBox4.Value
Then
Anzahl = Anzahl + 1 _
And
.Rows(Zeile).Delete
Else
f = MsgBox(
"Durchsuche Zeile: "
& Zeile & Chr(13) & .Cells(Zeile, 1).Value & .Cells(Zeile, 13).Value & Chr(13) _
& UserForm2.ComboBox1.Value & UserForm2.ComboBox4.Value , vbOKOnly,
"Info"
)
If
Anzahl = AnzahlTB
Then
Exit
For
If
Zeile = 1
Then
i = MsgBox(
"BLAAAAA"
, vbCritical,
"Error!"
)
If
i = vbOK
Then
Exit
Sub