mein Problem ist, dass ich einen if...then...else Code habe die nicht funktioniert. Jedoch soll eine lange Funktion nach dem then folgen. Also drei Befehle. Danach geht esdan wieder miteinerm Else If weiter. Das Problem ist jetzt, dass bei einer Else...If...Then...Else If Funktion alles in einer Zeile stehen muss. Wie loese ich mein Probem? Wer kann mir den richtigen Code nennen.
Hier mein bisheriger Code:
If OptionButton5 = True And OptionButton1 = True And CheckBox1 = False _
And CheckBox2 = False Then _
If db.Cells(pmpRow, 12) - ComboBox2 < 0 Then _
MsgBox "Ouantity can't be less than '0'!"
UsFr.Show
Exit Sub
Else db.Cells(pmpRow, 12) = db.Cells(pmpRow, 12) - ComboBox3 _
Else If OptionButton5 = True And OptionButton2 = True And CheckBox1 = False _
And CheckBox2 = False Then _
If db.Cells(pmpRow, 15) - ComboBox2 < 0 Then _
MsgBox "Ouantity can't be less than '0'!" And _
UsFr.Show
.....usw.
Vielen Dank im Voraus
ciao
Gnilk