We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc493d commit 6aba60cCopy full SHA for 6aba60c
samples/excel/42-range/range-cell-control.yaml
@@ -19,7 +19,7 @@ script:
19
const sheet = context.workbook.worksheets.getActiveWorksheet();
20
21
// Get the second column in the table.
22
- const range = sheet.getRange("FruitTable").getColumn(1);
+ const range = sheet.tables.getItem("FruitTable").columns.getItem("Analysis").getDataBodyRange();
23
24
// Change the boolean values to checkboxes.
25
range.control = {
@@ -89,7 +89,8 @@ script:
89
["Mango", "TRUE"],
90
["Dog", "FALSE"],
91
["Strawberry", "TRUE"],
92
- ["Chair", "FALSE"]
+ ["Chair", "FALSE"],
93
+ ["Tomato", "UNKNOWN"] /* Only boolean values will render as checkboxes. */
94
]);
95
96
sheet.getUsedRange().format.autofitColumns();
0 commit comments