Kod:
Private Sub CommandButton1_Click()
Dim t1 As Double
Dim t2 As Double
Dim t3 As Double
Dim t4 As Double
Dim t5 As Double
Dim t6 As Double
Dim t7 As Double
Dim t8 As Double
Dim t9 As Double
Dim t10 As Double
Dim t11 As Double
Dim t12 As Double
Dim t13 As Double
Dim t14 As Double
t1 = TextBox1.Value
t2 = TextBox2.Value
t3 = TextBox3.Value
t4 = TextBox4.Value
t5 = TextBox5.Value
t6 = TextBox6.Value
t7 = TextBox7.Value
t8 = TextBox8.Value
t9 = TextBox9.Value
t10 = TextBox10.Value
t11 = TextBox11.Value
t12 = TextBox12.Value
t13 = TextBox13.Value
t14 = TextBox14.Value
TextBox15 = t1 + t2 + t3 + t4 + t5 + t6 + t7 + t8 + t9 + t10 + t11 + t12 + t13 + t14
End Sub
Private Sub TextBox1_Change()
TextBox1 = Format(TextBox1, "###,0")
End Sub
Private Sub TextBox2_Change()
TextBox2 = Format(TextBox2, "###,0")
End Sub
Private Sub TextBox3_Change()
TextBox3 = Format(TextBox3, "###,0")
End Sub
Private Sub TextBox4_Change()
TextBox4 = Format(TextBox4, "###,0")
End Sub
Private Sub TextBox5_Change()
TextBox5 = Format(TextBox5, "###,0")
End Sub
Private Sub TextBox6_Change()
TextBox6 = Format(TextBox6, "###,0")
End Sub
Private Sub TextBox7_Change()
TextBox7 = Format(TextBox7, "###,0")
End Sub
Private Sub TextBox8_Change()
TextBox8 = Format(TextBox8, "###,0")
End Sub
Private Sub TextBox9_Change()
TextBox9 = Format(TextBox9, "###,0")
End Sub
Private Sub TextBox10_Change()
TextBox10 = Format(TextBox10, "###,0")
End Sub
Private Sub TextBox11_Change()
TextBox11 = Format(TextBox11, "###,0")
End Sub
Private Sub TextBox12_Change()
TextBox12 = Format(TextBox12, "###,0")
End Sub
Private Sub TextBox13_Change()
TextBox13 = Format(TextBox13, "###,0")
End Sub
Private Sub TextBox14_Change()
TextBox14 = Format(TextBox14, "###,0")
End Sub
Private Sub TextBox15_Change()
TextBox15 = Format(TextBox15, "###,0")
End Sub