Placing checkboxes in Google Sheets using Apps Script

前端 未结 8 1033
遥遥无期
遥遥无期 2020-12-10 02:14

I know that checkbox is a relatively new feature in Google Sheets, so I\'m trying to find a way to automatically create checkboxes in cells.

So far, I haven\'t foun

8条回答
  •  无人及你
    2020-12-10 02:55

    UPDATE(April 2019)

    You can now directly insertCheckboxes(or removeCheckboxes) on a Range or RangeList without any workarounds. You can also change the checked value/unchecked value using alternate method signatures found in the documentation.

    Snippet:

    SpreadsheetApp.getActive()
        .getRange('Sheet2!A2:A10')
        .insertCheckboxes();
    

提交回复
热议问题