回答編集履歴

2

 

2022/04/13 13:10

投稿

退会済みユーザー
test CHANGED
@@ -4,7 +4,7 @@
4
4
  ```js
5
5
  function clearBandings() {
6
6
  const sh = SpreadsheetApp.getActiveSheet();
7
- const bandings = sh.getRange('C8:E20').getBandings();
7
+ const bandings = sh.getRange('A1:E20').getBandings();
8
8
  for (const banding of bandings) {
9
9
  banding.remove();
10
10
  }

1

 

2022/04/13 13:02

投稿

退会済みユーザー
test CHANGED
@@ -10,3 +10,4 @@
10
10
  }
11
11
  }
12
12
  ```
13
+ 参考:[Class Banding](https://developers.google.com/apps-script/reference/spreadsheet/banding)