質問編集履歴
1
コードの追加。
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,6 +46,8 @@
|
|
46
46
|
|
47
47
|
spreadsheet.getRange('Title!A16:A1171').copyTo(spreadsheet.getActiveRange(), SpreadsheetApp.CopyPasteType.PASTE_VALUES, false);
|
48
48
|
|
49
|
+
deleteDeduplicateTitle(sh);
|
50
|
+
|
49
51
|
};
|
50
52
|
|
51
53
|
|
@@ -62,4 +64,34 @@
|
|
62
64
|
|
63
65
|
};
|
64
66
|
|
67
|
+
|
68
|
+
|
69
|
+
// 1番目の中で追加で動くコード
|
70
|
+
|
71
|
+
function deleteDeduplicateTitle(sh) {
|
72
|
+
|
73
|
+
sh.getColumnGroup(4, 1).expand();
|
74
|
+
|
75
|
+
var data = sh.getRange("E7:E").getValues();
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
for(i=0; i<500; i++) {
|
80
|
+
|
81
|
+
var deduplication = data[i];
|
82
|
+
|
83
|
+
if( 1 <= deduplication ) {
|
84
|
+
|
85
|
+
sh.getRange(i+7, 2).setValue('');
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
sh.getColumnGroup(4, 1).collapse();
|
94
|
+
|
95
|
+
};
|
96
|
+
|
65
97
|
```
|