Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Dim Yhteensa As Single
  2. Dim Hinta As Single
  3. Dim Maara As Single
  4. Dim Alennus As Single
  5. Dim Maksettava As Single
  6. Dim Alepro As Single
  7.  
  8. Private Sub CommandButton1_Click()
  9. Hinta = Val(TextBox2.Text)
  10. Maara = Val(TextBox3.Text)
  11. Yhteensa = Hinta * Maara
  12. TextBox5.Value = Yhteensa
  13. Alennus = TextBox4.Value
  14. TextBox6.Value = Yhteensa - Alennus
  15. Maksettava = TextBox6.Value
  16. Alepro = Maksettava / Yhteensa * 100
  17. TextBox7.Value = Alepro
  18. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement