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 sheets 谷歌电子表格冻结列和行_Google Sheets_Frozen Columns - Fatal编程技术网

Google sheets 谷歌电子表格冻结列和行

Google sheets 谷歌电子表格冻结列和行,google-sheets,frozen-columns,Google Sheets,Frozen Columns,我有谷歌电子表格和一些时间表 我冻结了前3行 问题: 如何冻结同一页中的最后一列 注意:要冻结红色区域吗 输出: 由于谷歌电子表格不允许按冒号冻结,您必须使用应用程序脚本 Gsheet-工具-脚本编辑器 function myFunction() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheetByName("yoursheetname"); // Freezes the first c

我有谷歌电子表格和一些时间表

我冻结了前3行

问题: 如何冻结同一页中的最后一列

注意:要冻结红色区域吗

输出:

由于谷歌电子表格不允许按冒号冻结,您必须使用应用程序脚本

Gsheet-工具-脚本编辑器

function myFunction() {
   var ss = SpreadsheetApp.getActiveSpreadsheet();
 var sheet = ss.getSheetByName("yoursheetname");

 // Freezes the first column
 sheet.setFrozenColumns(1);
}

冻结给定数量的列。如果为零,则不冻结任何列


不要低估你-但仍要一点一点地解释,以便在需要时其他人也可以使用…

由@Vasim给出的答案是错误的

这个答案
工作表。setFrozenColumns(X)
指的是从工作表左端开始冻结的行总数X

所以你的问题的答案是你不能,对了,大多数列不能在gsheet中冻结

希望这对未来的互联网绝地武士有所帮助

p、 s.(我肯定希望GS中存在此功能)