I’m having trouble to populate range of cells with formulas. I know I could do it with individual statements, but would like to do it in one line if possible.
I’d like to populate formulas into the range A1:B3
Following doesn’t work:
sDoc.SetFormula("Sh1.A1:B3", Array(Array("=A5*B5", "=A6*B5", "=A7*B6"), Array("=A8*B5", "=B5*C5", "=B5*C6")))
REM In two rows works fine:
`sDoc.SetFormula("Sh1.A1:A3", Array("=A5*B5", "=A6*B5", "=A7*B6")
`sDoc.SetFormula("Sh1.B1:B3", Array("=A8*B5", "=B5*C5", "=B5*C6")
I’d like to avoid entering each element separately also if possible ( range(0, 0) = “A5*B5” …)