ich habe eine Userform mit Textboxen von 1 bis 14. In Textbox15 soll schon während der Eingabe die Summe von Textbox2 bis Textbox14 erscheinen. Ich habe dazu folgenden Code:
Private Sub TextBox2_Exit(ByVal cancel As MSForms.ReturnBoolean)
TextBox15.Text = CInt(TextBox2.Value) + CInt(TextBox3.Value) + CInt(TextBox4.Value) _
+ CDbl(TextBox5.Value) + CDbl(TextBox6.Value) _
+ CInt(TextBox7.Value) + CInt(TextBox8.Value) _
+ CInt(TextBox9.Value) + CInt(TextBox10.Value) _
+ CInt(TextBox11.Value) + CInt(TextBox12.Value) _
+ CInt(TextBox13.Value) + CInt(TextBox14.Value)
End Sub
Sobalb ich allerdings einen Wert in Textbox2 eingebe bricht die Prozedur ab mit Runtime-error 13.Habe ich etwas falsch deklariert, sieht jemand meinen Fehler? Ich leider nicht.
Lieben Gruß
Nette