#7) Haldunc » 12 Mar 2015 11:24
Tarkan Bey
Teşekkür ederim..
Son satırda 100 tam sayısından çıkarma işlemini hallettim.
Şimdi halledemediğim ise yine renkli kısımlarda ondalıklarda problem yaşamam..
Örneğin
TextBOX17: 23,2
TextBox18: 2,55
TextBox19: 3,90
TextBox20: 5,77
TextBox21: 3,76
Aşağıda 1. kodlamada bu 5 değeri toplayıp TextBox değerini buluyorum : 39,18
2. kodlamada TextBox25 değerini = TexBox19(3,90) / TextBox 22 (39,18) yani 3,90'ın 39,18'de % değerini bulmak istiyorum ve
(100* (TextBox19/TextBox22)) yapıyorum. Çıkması gereken değer 9,95 olması gerekirken sonuç 09,95 çıkıyor. 1000 ile çarptım sonuç yine değişmedi.. Formatım 0.00 olmalı 0.00% işime yaramıyor. Çünkü o zaman en son kod çalışmıyor.
Private Sub TextBox22_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
TextBox22.Value = CDbl(TextBox17.Value) + CDbl(TextBox18.Value) + CDbl(TextBox19.Value) + CDbl(TextBox20.Value) + CDbl(TextBox21.Value)
End Sub
--------------
Private Sub TextBox25_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
TextBox25.Value = Format(100 * ((CDbl(TextBox19.Value) / CDbl(TextBox22.Value))), "0.00")
End Sub
--------------------
Private Sub TextBox26_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
TextBox26.Value = Format(100 * ((CDbl(TextBox21.Value) / CDbl(TextBox22.Value))), "0.00")
End Sub
----------------
Private Sub TextBox27_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
TextBox27.Value = Format(100 * ((CDbl(TextBox20.Value) / CDbl(TextBox22.Value))), "0.00")
End Sub
------------------
Private Sub TextBox24_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
TextBox24.Value = Format(100 * ((CDbl(TextBox18.Value) / CDbl(TextBox22.Value))), "0.00")
End Sub
------------------------------
Private Sub TextBox23_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
TextBox23.Value = Format(100 - ((CDbl(TextBox24.Value) + CDbl(TextBox27.Value) + CDbl(TextBox26.Value) + CDbl(TextBox25.Value))), "0.00")
End Sub