please advice best way to replace formulas with values.
I used before:
//copy-paste values
rEPORT__2_.getRange().copyFrom(rEPORT__2_.getRange(), ExcelScript.RangeCopyType.values, false, false);
but it stopped to work starting from today. Excel just get unexpected error if i try to copy-paste more tnan 100 rows in one script.
So, is there any other way to replace formalas with values at whoole sheet ?
I tried to use loop (for i). But result almost the same – it process about 50-100 rows with copy-paste and then i just get an error (time-out or unexpected).
2
Answers
There’s an effective method for transforming formulas into fixed values.
setValues
function for conversion, as it is more efficient thancopyFrom
.