DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
Dim Tarih As Date
Dim TAdet As Integer
Dim i As Integer
Dim Taksit As Currency
Tarih = DateSerial(ComboBox3.Value, ComboBox2.Value - 1, ComboBox1.Value)
TAdet = ComboBox4.Value
Taksit = Round(TextBox100.Value / TAdet, 2)
For i = 1 To 48
Controls("TextBox" & i) = Empty
Next i
i = 0
Do
i = i + 1
Tarih = DateAdd("m", 1, Tarih)
Controls("TextBox" & i) = Format(Tarih, "dd.mm.yyyy")
Controls("TextBox" & i + 24) = Format(Taksit, "#,##0.00")
Loop While i < TAdet
End Sub
Private Sub CommandButton2_Click()
Unload Me
End Sub
hocam minnettarım. ellerine sağlık
Merhaba,
Taksit hesaplayan kodlar aşağıdadır.
Kod:Private Sub CommandButton1_Click() Dim Tarih As Date Dim TAdet As Integer Dim i As Integer Dim Taksit As Currency Tarih = DateSerial(ComboBox3.Value, ComboBox2.Value - 1, ComboBox1.Value) TAdet = ComboBox4.Value Taksit = Round(TextBox100.Value / TAdet, 2) For i = 1 To 48 Controls("TextBox" & i) = Empty Next i i = 0 Do i = i + 1 Tarih = DateAdd("m", 1, Tarih) Controls("TextBox" & i) = Format(Tarih, "dd.mm.yyyy") Controls("TextBox" & i + 24) = Format(Taksit, "#,##0.00") Loop While i < TAdet End Sub
Kod:Private Sub CommandButton2_Click() Unload Me End Sub
Merhabalar.Bu kodda ne gibi bir ekleme yada değişiklik yaparsak istenilen taksit sayısı kadar textbox'ı True diğerlerini False yapabiliriz.
Dim Tarih As Date
Dim TAdet As Integer
Dim i As Integer
Dim Taksit As Currency
Tarih = DateSerial(ComboBox3.Value, ComboBox2.Value - 1, ComboBox1.Value)
TAdet = ComboBox4.Value
Taksit = Round(TextBox100.Value / TAdet, 2)
For i = 1 To 48
With Controls("TextBox" & i)
.Value = Empty
.Visible = False
End With
If i < 25 Then Controls("Label" & i).Visible = False
Next i
i = 0
Do
i = i + 1
Tarih = DateAdd("m", 1, Tarih)
Controls("TextBox" & i).Visible = True
Controls("TextBox" & i) = Format(Tarih, "dd.mm.yyyy")
Controls("TextBox" & i + 24).Visible = True
Controls("TextBox" & i + 24) = Format(Taksit, "#,##0.00")
Controls("Label" & i).Visible = True
Loop While i < TAdet
If TAdet > 12 Then
Label105.Visible = True
Label106.Visible = True
Else
Label105.Visible = False
Label106.Visible = False
End If
End Sub
Private Sub CommandButton2_Click()
Unload Me
End Sub
Merhaba,
- Bu konuda benim de yardıma ihtiyacı var arkadaşlar.
- Bir adet Userform içerisinde 12 adet text kutusu var. Yukarıda girilen toplamı, Combodan seçtiğim taksit oranı kadar diğer text kutularına dağıtmasını istiyorum.
- Ben forumdan bulduğum kodlarla birşeyler yapmaya çalıştım ama içinden çıkamadım.
- Yardımlarınızı bekliyorum.
- Neyse sorunumu çözdüm arkadaşlar.
Merhaba. Nasıl çözdüğünüzü açıklasanız da sizin gibi arkadaşlara faydası olsa.
Private Sub CommandButton1_Click()
Dim Tarih As Date
Dim TAdet As Integer
Dim i As Integer
Dim Taksit As Currency
TAdet = ComboBox1.Value
Taksit = Round(toplam.Value / TAdet, 2)
For i = 1 To 12
With Controls("TextBox" & i)
.Value = Empty
End With
Next i
i = 0
Do
i = i + 1
Controls("TextBox" & i + 0) = Format(Taksit, "#,##0.00")
Loop While i < TAdet
End Sub