vba - Calculating value of formula -


is there way read formula vba structure "y=3x^2-5*x+3" , have "y=" replaced blank ("") , x replaced actual value?

you can use evaluate caculate string formula

if had 3*x^2-5*x+3 (rather 3x^2-5*x+3) code retruns 53

dim strin string strin = "3*x^2-5*x+3" msgbox evaluate(replace(strin, "x", "5")) 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -