回答編集履歴
2
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
```js
|
5
5
|
function clearBandings() {
|
6
6
|
const sh = SpreadsheetApp.getActiveSheet();
|
7
|
-
const bandings = sh.getRange('
|
7
|
+
const bandings = sh.getRange('A1:E20').getBandings();
|
8
8
|
for (const banding of bandings) {
|
9
9
|
banding.remove();
|
10
10
|
}
|
1
test
CHANGED
@@ -10,3 +10,4 @@
|
|
10
10
|
}
|
11
11
|
}
|
12
12
|
```
|
13
|
+
参考:[Class Banding](https://developers.google.com/apps-script/reference/spreadsheet/banding)
|