ulutanas
Altın Üye
- Katılım
- 8 Kasım 2008
- Mesajlar
- 582
- Excel Vers. ve Dili
- Excel Vers. ve Dili Ofis 2021 TR 32 Bit
Arkadaşlar merhaba TextBox'ları ve ComboBox'ları Listbox'a aktaran mevcut bir kod mevcut lakin toplamda 9 adet text ve Combobox'lara bir tane daha ekleme yaptığımda 10. eklenen de hata veriyor.
End Sub
En son eklenen kodda hata veriyor 10 adet eklenemiyor mu acaba dedim, ama çözümü de vardır muhakkak
İyi çalışmalar dilerim,
Saygılarımla...
Kod:
Private Sub CommandButton15_Click()
If TextBox23.Value = "" Then
MsgBox "Sözleçme No boş olamaz!", vbCritical, "UYARI"
TextBox26.SetFocus
Exit Sub
End If
If TextBox26.Value = "" Then
MsgBox "Açıklama boş olamaz!", vbCritical, "UYARI"
TextBox26.SetFocus
Exit Sub
End If
If TextBox27.Value = "" Then
MsgBox "Birim boş olamaz!", vbCritical, "UYARI"
TextBox27.SetFocus
Exit Sub
End If
If Not IsNumeric(TextBox28.Value) Then
MsgBox "Miktar sayısal bir değer olmalıdır!", vbCritical, "UYARI"
TextBox28.SetFocus
Exit Sub
End If
ListBox4.AddItem
ListBox4.List(ListBox4.ListCount - 1, 0) = ComboBox4.Value
ListBox4.List(ListBox4.ListCount - 1, 1) = Format(CDbl(TextBox24.Value), "#,##0.00")
ListBox4.List(ListBox4.ListCount - 1, 2) = Format(CDbl(TextBox25.Value), "#,##0.00")
ListBox4.List(ListBox4.ListCount - 1, 3) = ComboBox5.Value
ListBox4.List(ListBox4.ListCount - 1, 4) = TextBox26.Value
ListBox4.List(ListBox4.ListCount - 1, 5) = Format(CDbl(TextBox27.Value), "#,##0.00")
ListBox4.List(ListBox4.ListCount - 1, 6) = Format(CDbl(TextBox28.Value), "#,##0")
ListBox4.List(ListBox4.ListCount - 1, 7) = Format(CDbl(TextBox29.Value), "#,##0.00")
ListBox4.List(ListBox4.ListCount - 1, 8) = TextBox30.Value
ListBox4.List(ListBox4.ListCount - 1, 9) = Format(CDbl(TextBox31.Value), "#,##0.00")
ListBox4.List(ListBox4.ListCount - 1, 10) = Format(CDbl(TextBox32.Value), "#,##0.00")
End Sub
End Sub
En son eklenen kodda hata veriyor 10 adet eklenemiyor mu acaba dedim, ama çözümü de vardır muhakkak
İyi çalışmalar dilerim,
Saygılarımla...
