Advertisement
veronikaaa86

04. Currency

Sep 7th, 2022
1,072
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub CurrencyProblem()
  2.     Dim quantity As Integer
  3.     quantity = Range("A2")
  4.    
  5.     Dim amount, result As Double
  6.     amount = Range("C2")
  7.    
  8.     result = quantity * amount
  9.    
  10.     Debug.Print result
  11.    
  12.     Range("E2") = result
  13. End Sub
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement