Hi all.
Does anyone know why this simple task will not work? When I try to do this simple operation:
It fails at the last line with Error 5 (Invalid Procedure Call or Argument)
Yet in the Immediate Window I can enter the values of the variables and all is fine:
Or even this works:
But not this:
What am I missing here? I'll bet it's something really stupid.
Does anyone know why this simple task will not work? When I try to do this simple operation:
Code:
Dim A as Double
Dim NewA as Double
Dim Abby as Double
A= -502.14
Abby = 0.5
NewA = A ^ Abby
Yet in the Immediate Window I can enter the values of the variables and all is fine:
Code:
?-502.14^.5
-22.4084805375108
Code:
? -502.14^Abby
-22.4084805375108
Code:
? A^Abby