これがコンセプトです...
function runthatline() {
var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1");
var doThat = ss.getRange("A1").getValue();
// The literal value in A1 = ss.getRange("B1").setValue("success")
doThat
ss.getRange("C1").setValue("success")
// The values in both B1 and C1 should now be "success"
}
変数をスクリプトのフロー内で実行できる実際のコード行に変換するために、変数を正しく使用していませんか?
これもできますか?