回答編集履歴
1
利用する変数の修正
test
CHANGED
@@ -16,14 +16,14 @@
|
|
16
16
|
|
17
17
|
const D = 4
|
18
18
|
|
19
|
-
const ROWS = lastRow -
|
19
|
+
const ROWS = lastRow - topRow + 1
|
20
20
|
|
21
|
-
const merge = sheet.getRange(
|
21
|
+
const merge = sheet.getRange(topRow, B, ROWS, 2)
|
22
22
|
|
23
23
|
.getDisplayValues()
|
24
24
|
|
25
25
|
.map( v => [ v.join('') ] )
|
26
26
|
|
27
|
-
sheet.getRange(
|
27
|
+
sheet.getRange(topRow, D, ROWS).setValues(merge)
|
28
28
|
|
29
29
|
```
|