Why doesn't copyTo(… PASTE_VALUES) work in the middle of a macro?

前端 未结 2 1050
遇见更好的自我
遇见更好的自我 2021-01-15 04:57

One of my longstanding techniques with spreadsheets is Copy / Paste Special Values (C/PSV), in place. Having used formulas to produce the values I\'m interested in, I C/PSV

2条回答
  •  灰色年华
    2021-01-15 05:06

    Confronted to a similar issue (e.g. copying the result of a calculation from one range of cells into another range in which I needed the result alone without the formulas), using {contentsOnly:true} instead of SpreadsheetApp.CopyPasteType.PASTE_VALUES did the job.

提交回复
热议问题