The code below means "Input data to active area".
コード.gs
function myFunction() {
var range = SpreadsheetApp.getActiveRange();
range.setValue("hello");
}
|
意訳.gsこの処理は以下を実行する 今選択しているセルを取得して 指定した値を入力する |
一行で書くと
SpreadsheetApp.getActiveRange().setValue("hello");