-3

4 列の Google スプレッドシートがあります。列にデフォルト値を入力する関数と、すべてのセルを空にするが列ヘッダーを保持する別の関数が必要です。

4

2 に答える 2

0

This basic function will populate your spreadsheet with X number of values in the first column:

function populateSpreadSheet() {
  var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  var line=ss.getLastRow()+1;
  var length = 550;
  for(i = 0;i < length;i++){
    ss.getRange("A1:A" + length).setValue("some value");
  }
}

A similar call to clearContent() should empty the cells.

于 2012-10-04T07:46:30.623 に答える
0

これらはかなり基本的な機能のようです。それらを自分で開発する必要があります。Apps Scriptガイドチュートリアルを読みましたか?

Stackoverflow は、プログラム全体について質問するのではなく、プログラミングに関する疑問を質問する場所です。

于 2012-08-08T14:30:41.507 に答える