简体   繁体   English

使用Google Apps脚本插入数据验证

[英]Insert Data Validation using Google Apps Script

I'm trying to insert an in cell dropdown menu (Data > Validation > List of Items) in a Gsheet using Google Apps Script. 我正在尝试使用Google Apps脚本在Gsheet中插入一个单元格内的下拉菜单(数据>验证>项目列表)。 I want to do this because every time I use the spreadsheet the 'list of items' will change slightly and I don't wanna have to go to "Data > Validation > List of Items" every time I open the spreadsheet. 我想这样做是因为每次使用电子表格时,“项目列表”都会略有变化,并且我不想每次打开电子表格时都转到“数据>验证>项目列表”。

I'm aware that "Data > Validation > List from a Range" exists but I'd rather not use it. 我知道存在“数据>验证>范围列表”,但是我不希望使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM