I am trying to use Scott Klement code to write to Excel file. Have trouble figuring out format for formulas. Need to multiply two cells and put result into a different cell. Anybody has done that?
/free
//Excel cell names must be used in formulas
Cell1 = hssf_cellname(2:4);//get name for row 2 col 4 (E3)
Cell2 = hssf_cellname(2:5);//get name for row 2 col 5 (F3)
//Place formula for "Cell1 * Cell2" in col 12 of curr row
//Do not include the '=' prior to the formula
hssf_formula(row : 12 : Cell1 + '*' + Cell2 : Numeric0);
/end-free
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.