• DİKKAT

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

kuruşları hesaplama

  • Konbuyu başlatan Konbuyu başlatan wqazx
  • Başlangıç tarihi Başlangıç tarihi
Katılım
24 Şubat 2005
Mesajlar
42
Herkese merhaba
Çok uğraştım ama bir türlü yapamadım.

textbox1 = textbox2-(textbox3+textbox4+textbox5)

Ancak, kuruşları da hesaplaması lazım.Yani

textbox1 = 457,50-(100,00+125,25+175,75+boş(textbox5) )
 
aynı sorun mu bilmiyorum ama bende yasamistim.saolsun moderatorler yardimci oldu.bildigim kaadriyla TextBox1.Text olmamasi lazim TextBox ın metin degil TextBox1.Value Gibi olması lazım.
 
Merhaba
Kod:
TextBox1 = Format(CCur(TextBox2.Value) + CCur(TextBox3.Value), "#,##0.00")
 
Sayın Raider Buna ait yazdığı bir kodu size uyarladım..
Kod:
On Error Resume Next
    a = Round(TextBox3, 2)
    a = WorksheetFunction.Substitute(a, ",", ".")
    b = Round(TextBox4, 2)
    b = WorksheetFunction.Substitute(b, ",", ".")
    c = Round(TextBox5, 2)
    c = WorksheetFunction.Substitute(c, ",", ".")
    y = Round(TextBox2, 2)
    y = WorksheetFunction.Substitute(y, ",", ".")
    z = (Val(a) + Val(b) + Val(c)) - Val(y)
    z = WorksheetFunction.Substitute(z, ".", ",")
    TextBox1 = z
 
xxrt' Alıntı:
Sayın Raider Buna ait yazdığı bir kodu size uyarladım..
Kod:
On Error Resume Next
    a = Round(TextBox3, 2)
    a = WorksheetFunction.Substitute(a, ",", ".")
    b = Round(TextBox4, 2)
    b = WorksheetFunction.Substitute(b, ",", ".")
    c = Round(TextBox5, 2)
    c = WorksheetFunction.Substitute(c, ",", ".")
    y = Round(TextBox2, 2)
    y = WorksheetFunction.Substitute(y, ",", ".")
    z = (Val(a) + Val(b) + Val(c)) - Val(y)
    z = WorksheetFunction.Substitute(z, ".", ",")
    TextBox1 = z

Sn xxrt çalıştırdım çok teşekkürler.İyi çalımalar
 
Geri
Üst