- Katılım
- 20 Haziran 2008
- Mesajlar
- 697
- Excel Vers. ve Dili
- Microsoft Office ev ve iş 2019
- Altın Üyelik Bitiş Tarihi
- 03-07-2024
selam
aşağıdaki kod ile textbox5 ile textbox6 yı çarpıp sonucu textbox7 ye aldırıyorum kayıt butonunda debug hatası veriyor sorun nereden kaynaklanıyor
Private Sub TextBox5_Change()
'**************ÇARPMA**kod başlangıç*******************
If Len(TextBox5.Text) = 0 Then Exit Sub
If Not IsNumeric(TextBox5.Text) Then
Beep
MsgBox "Harf girilmeyecek,Sadece Rakam Giriniz .......!!", vbOKOnly, "dikkat !!!"
End If
End Sub
Private Sub TextBox6_Change()
On Error Resume Next
TextBox7 = FormatNumber(TextBox5 * TextBox6)
If Err <> 0 Then TextBox7 = Empty
'textbox formatı*******************
TextBox7 = Format(TextBox7, "##,##0.00 TL") '
End Sub
'********ÇARPMA**kod BİTİŞ*********
aşağıdaki kod ile textbox5 ile textbox6 yı çarpıp sonucu textbox7 ye aldırıyorum kayıt butonunda debug hatası veriyor sorun nereden kaynaklanıyor
Private Sub TextBox5_Change()
'**************ÇARPMA**kod başlangıç*******************
If Len(TextBox5.Text) = 0 Then Exit Sub
If Not IsNumeric(TextBox5.Text) Then
Beep
MsgBox "Harf girilmeyecek,Sadece Rakam Giriniz .......!!", vbOKOnly, "dikkat !!!"
End If
End Sub
Private Sub TextBox6_Change()
On Error Resume Next
TextBox7 = FormatNumber(TextBox5 * TextBox6)
If Err <> 0 Then TextBox7 = Empty
'textbox formatı*******************
TextBox7 = Format(TextBox7, "##,##0.00 TL") '
End Sub
'********ÇARPMA**kod BİTİŞ*********