chadski778
Active Member
- Joined
- Mar 14, 2010
- Messages
- 297
I'm working my way through VBA for dummies and i'm trying some example code.
Why isn't the following code working?
Sub CubeRoot()
Num = InputBox(“Enter a positive number”)
MsgBox Num ^ (1/3) & “ is the cube root.”
End Sub
Why isn't the following code working?
Sub CubeRoot()
Num = InputBox(“Enter a positive number”)
MsgBox Num ^ (1/3) & “ is the cube root.”
End Sub
This simple procedure asks the user for a number and then displays that
number’s cube root in a message box. In the VBE the middle two lines turn red when I enter them so there is a compile error