0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GASを使ってオートフィルする

Posted at

説明

reference_rangeにはパターン生成の参照元となる範囲を指定します。
effect_rangeには、パターンが影響する全体(その際、範囲はreference_rangeも含まれている必要があります)を指定します。

  const Sheet = SpreadsheetApp.openById('YOUR_SPREAD_ID).getSheetByName('YOUR_SHEET_NAME');
  const last_row = Sheet.getLastRow();
  const reference_range = Sheet.getRange(1,1,last_row, 1);
  const effect_range = Sheet.getRange(1,1, last_row + 1, 1);
  reference_range.autoFill(effect_range, SpreadsheetApp.AutoFillSeries,DEFAULT_SERIES);

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?