Çözüldü textboxlar arasında toplama

sirkülasyon

Altın Üye
Katılım
10 Temmuz 2012
Mesajlar
2,518
Excel Vers. ve Dili
2021 LTSC TR
Altın Üyelik Bitiş Tarihi
18-06-2026
Private Sub ................._Change()
Dim t2 As Double
Dim t3 As Double
Dim t4 As Double
Dim t5 As Double
t2 = Val(TextBox1.Value)
t3 = Val(TextBox3.Value)
t4 = Val(TextBox5.Value)
t5 = Val(TextBox7.Value)
TextBox9 = t1 + t3 + t5 + t7
End Sub

Yapmak istediğim aşağıda belirttiğim textboxlara veri girdiğim an Textbox9 da otomatik toplaması.
Textbox1 + Textbox3 + Textbox5 + Textbox7

Ama bir türlü olmadı. Yardımcı olabilir misiniz?
 

Mahmut Bayram

Özel Üye
Katılım
25 Haziran 2005
Mesajlar
1,778
Excel Vers. ve Dili
2016 Excel Tr
Kod:
TextBox9.Text = Application.Sum(TextBox1, TextBox3 TextBox5, TextBox7)
 

EmrExcel16

Destek Ekibi
Destek Ekibi
Katılım
1 Kasım 2012
Mesajlar
1,524
Excel Vers. ve Dili
Office 365 Türkçe
Merhaba tanımlamaları t2,t3,t4,t5 diye yapmışsın fakat toplarken t1 + t3 + t5 + t7 diye yapmışsın belki sorun bu olabilir tanımlamalarda yada toplarken kontrol et
 

sirkülasyon

Altın Üye
Katılım
10 Temmuz 2012
Mesajlar
2,518
Excel Vers. ve Dili
2021 LTSC TR
Altın Üyelik Bitiş Tarihi
18-06-2026
Olmadı yine toplamadı
 

Mahmut Bayram

Özel Üye
Katılım
25 Haziran 2005
Mesajlar
1,778
Excel Vers. ve Dili
2016 Excel Tr
Kod:
Dim top As Double
On Error Resume Next
top = top + CDbl(TextBox1.Text)
top = top + CDbl(TextBox3.Text)
top = top + CDbl(TextBox5.Text)
top = top + CDbl(TextBox7.Text)
TextBox9.Text = top
 

EmrExcel16

Destek Ekibi
Destek Ekibi
Katılım
1 Kasım 2012
Mesajlar
1,524
Excel Vers. ve Dili
Office 365 Türkçe
Kod:
Private Sub TextBox1_Change()
Dim t2 As Double, t3 As Double, t4 As Double, t5 As Double
t1 = Val(TextBox1.Value)
t3 = Val(TextBox3.Value)
t5 = Val(TextBox5.Value)
t7 = Val(TextBox7.Value)
TextBox9 = t1 + t3 + t5 + t7
End Sub
Private Sub TextBox3_Change()
Dim t2 As Double, t3 As Double, t4 As Double, t5 As Double
t1 = Val(TextBox1.Value)
t3 = Val(TextBox3.Value)
t5 = Val(TextBox5.Value)
t7 = Val(TextBox7.Value)
TextBox9 = t1 + t3 + t5 + t7
End Sub
Private Sub TextBox5_Change()
Dim t2 As Double, t3 As Double, t4 As Double, t5 As Double
t1 = Val(TextBox1.Value)
t3 = Val(TextBox3.Value)
t5 = Val(TextBox5.Value)
t7 = Val(TextBox7.Value)
TextBox9 = t1 + t3 + t5 + t7
End Sub
Private Sub TextBox7_Change()
Dim t2 As Double, t3 As Double, t4 As Double, t5 As Double
t1 = Val(TextBox1.Value)
t3 = Val(TextBox3.Value)
t5 = Val(TextBox5.Value)
t7 = Val(TextBox7.Value)
TextBox9 = t1 + t3 + t5 + t7
End Sub
 
Üst