Consider the code below: it sets values then sets functions across a range, however it overwrites the values that were set.
function test() { var ss = Spre
I think the problem can be largely mitigated by the fact that setValues() can be used to set formulae.
var range = ss.getRange("A1:B2"); var values = range.getValues(); // process the array, eg values[0][0] = "=42"; range.setValues();