VBA sin() and cos() trouble
Im trying to make some VBA form and to calculate some simple values but I dont understand why VBA dosen't recognize Sin() and Cos() functions. For example: I wrote int() and VBA transformed it into Int(), but it doesn't do the same with sin and cos. Moreover, after I'm trying to compile my code Private Sub btn_exit_Click() Unload laborator_2 End Sub Private Sub btn_start_Click() today.Caption = Date rnb_val.Caption = Int(Rnd * 90 + 1) sqrt_val.Caption = Sqr(rnb_val.Caption) si_val.Caption = sin(rnb_val.Caption * 3.14159 / 180) co_val.Caption = rnb_val.Caption * 3.1459 / 180 End Sub I got this
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.