- Katılım
- 11 Ağustos 2005
- Mesajlar
- 239
arkadaşlar aşağıdaki kod textboxların toplamını alıyor
toplanacak bütün textboxların change olayına bu kod yazılıyor
sorunum şu textboxlar 7 den 26 ya kadar ama aradaki 21,22, nolu textboxlar toplanmayacak
Private Sub TextBox7_Change()
Dim i As Byte, toplam As Double
For i = 7 To 26
If IsNumeric(Controls("TextBox" & i).Value) Then
toplam = toplam + CDbl(Controls("Textbox" & i))
End If
Next
TextBox32 = Format(toplam, "#,##0.00")
End Sub
toplanacak bütün textboxların change olayına bu kod yazılıyor
sorunum şu textboxlar 7 den 26 ya kadar ama aradaki 21,22, nolu textboxlar toplanmayacak
Private Sub TextBox7_Change()
Dim i As Byte, toplam As Double
For i = 7 To 26
If IsNumeric(Controls("TextBox" & i).Value) Then
toplam = toplam + CDbl(Controls("Textbox" & i))
End If
Next
TextBox32 = Format(toplam, "#,##0.00")
End Sub