Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 使用自动填充锁定Google Doc电子表格中的行或列编辑_Google Apps Script_Google Sheets - Fatal编程技术网

Google apps script 使用自动填充锁定Google Doc电子表格中的行或列编辑

Google apps script 使用自动填充锁定Google Doc电子表格中的行或列编辑,google-apps-script,google-sheets,Google Apps Script,Google Sheets,如何使用Google电子表格中的脚本锁定一列(行)或一列(行)的编辑,使其不受列(行)上的自动填充操作的影响。请帮忙 谢谢。不幸的是,谷歌没有发布一种阻止单元格的方法,只能阻止整个页面,如下代码所示 var sheet = SpreadsheetApp.getActiveSheet(); var permissions = sheet.getSheetProtection(); permissions.addUser('user@example.com'); permissions.setPro

如何使用Google电子表格中的脚本锁定一列(行)或一列(行)的编辑,使其不受列(行)上的自动填充操作的影响。请帮忙


谢谢。

不幸的是,谷歌没有发布一种阻止单元格的方法,只能阻止整个页面,如下代码所示

var sheet = SpreadsheetApp.getActiveSheet();
var permissions = sheet.getSheetProtection();
permissions.addUser('user@example.com');
permissions.setProtected(true);
sheet.setSheetProtection(permissions);
我遵循了他们的路线图,这个功能可能在未来两个月内发布