• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

, ü rakam ayıracı olarak görmüyor

Katılım
25 Aralık 2007
Mesajlar
335
Excel Vers. ve Dili
exel 2000 türkçe
Private Sub TextBox21_Change()
If ComboBox6.Value = "TL" Then
TextBox35.Value = 0
TextBox35 = Format(TextBox35.Value, "#,##0.00")
End If
If ComboBox6.Value <> "TL" Then
TextBox35 = Val(TextBox21.Value) * Val(TextBox38.Value)
End If
End Sub
Private Sub TextBox21_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Select Case KeyAscii
Case Asc("0") To Asc("9")
Case Asc(",")
Case Else
KeyAscii = 0: MsgBox "Sadece rakam girebilirsiniz.", vbExclamation, "İŞLEM HATASI !"
End Select
End Sub
ve
Private Sub TextBox38_Change()
If ComboBox6.Value = "TL" Then
TextBox35.Value = 0
End If
If ComboBox6.Value <> "TL" Then
TextBox35 = Val(TextBox21.Value) * Val(TextBox38.Value)
End If
End Sub
yukardaki kodla
textbox21 e rakam girilmeye zorlanıyor
ve textbox21 ile textbox36 carpıp sonucu textbox38 e yazıyor
ancak bu textboxlar döviz kuru ile ilgili olduğundan 0 dan sonra 4 hane daha gitmesi gerekir.ancak örneğin
textbox21 e 10,1234 ve textbox38 e de 10 değerleini girdiğimde
textbox38 e 100 yazıyor virğülden sonrasını hesaplamıyor
ne yapmam gerekir
saygılar
 
Kod:
If ComboBox6.Value = "TL" Then
TextBox35.Value = 0
TextBox35 = Format(TextBox35.Value, "#,##0.00")
End If
If ComboBox6.Value <> "TL" Then
TextBox35 = Val(TextBox21.Value) * Val(TextBox38.Value)
End If
End Sub
Private Sub TextBox21_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
    Select Case KeyAscii
    Case Asc("0") To Asc("9")
    Case Asc(",")
    Case Else
    KeyAscii = 0: MsgBox "Sadece rakam girebilirsiniz.", vbExclamation, "İŞLEM HATASI !"
    End Select
End Sub
ve
Private Sub TextBox38_Change()
If ComboBox6.Value = "TL" Then
TextBox35.Value = 0
End If
If ComboBox6.Value <> "TL" Then


TextBox35 = Format((Val(TextBox21.Value) * Val(TextBox38.Value)),"#,##0.0000")



End If
End Sub

Ekteki gibi denermisiniz.
 
olmadı hocam

ekte gonderdigim dosyanın cari sayfası c sutununa cift tıkladıgınızda form acılır
 

Ekli dosyalar

  • olmadı.jpg
    olmadı.jpg
    89.5 KB · Görüntüleme: 5
  • gonder.xls
    gonder.xls
    149.5 KB · Görüntüleme: 3
hocam
onerdiginiz cozum sadece textbox 35 i, den sonra 4 hane ilerletiyor
ancak gene carpmada , den sonrasını hesaplamıyor
yukrdaki msg de dosyayı gonderdim
saygılar
 
hocam
sunu gordum
Private Sub TextBox21_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Select Case KeyAscii
Case Asc("0") To Asc("9")
Case Asc(",")
Case Else
KeyAscii = 0: MsgBox "Sadece rakam girebilirsiniz.", vbExclamation, "İŞLEM HATASI !"
End Select
End Sub
kodundaki
Case Asc(",")
kodunu
Case Asc(".")
olarak degiştirirsem hesaplama yapıyor
demekki ole bi kod yazmalıyımki
tum , lleri . ya cevirmeli
 
Geri
Üst