BigInch
Petroleum
- Jun 21, 2006
- 15,161
I'm reading a string value from Excel into a string variable named strK. strK equals,
"0.035 * (-0.2 * x(2) ^ 4 + 3.45 * x(2) ^ 3 - 5 * x(2) ^ 2 + 50 * x(2) + 3)"
I have known values for the array x() and now I would like to have VBA evaluate the above string as a formula and set a variable, c2, equal to that.
Any ideas on how to accomplish this?
Thanks,
**********************
"The problem isn't finding the solution, its trying to get to the real question." BigInch
"0.035 * (-0.2 * x(2) ^ 4 + 3.45 * x(2) ^ 3 - 5 * x(2) ^ 2 + 50 * x(2) + 3)"
I have known values for the array x() and now I would like to have VBA evaluate the above string as a formula and set a variable, c2, equal to that.
Any ideas on how to accomplish this?
Thanks,
**********************
"The problem isn't finding the solution, its trying to get to the real question." BigInch