Paste Special Values (google-apps-script) -


i have range consisting of 3 columns , 2 (or more) rows. middle column contains formula: =transpose(split(a1,","))

the script needs move (cut) range onto sheet values, not formulas.

does google-apps-script have means of doing "pastespecial - values"?

here line i'm using:

sheet1.getrange("f1:h3").moveto(sheet2.getrange("a1"));  

can tell me how can lock values in before move onto sheet2 ?

(fyi: requires code solution only)

just alternative, can use copyto() advanced arguments copy values only. mimic effect of moveto(), still need clear source range.

also, if it's easier, getrange() accepts string reference includes sheet name. so:

function movevaluesonly() {   var ss = spreadsheetapp.getactivespreadsheet();   var source = ss.getrange('sheet1!f1:h3');   source.copyto(ss.getrange('sheet2!a1'), {contentsonly: true});   source.clear(); } 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -