gpt4 book ai didi

google-apps-script - 谷歌电子表格 : Set a default value to all the cells in a column with/with out script

转载 作者:行者123 更新时间:2023-12-02 00:26:36 25 4
gpt4 key购买 nike

我正在寻找一种方法来为电子表格中的单元格设置默认值?

有什么想法吗?

最佳答案

不确定您在寻找什么。你能试着澄清你想做什么吗?

如果您转到工具/脚本编辑器并输入以下代码,则在编辑任何单元格时,单元格 A2 到 A11 将设置为 42:

function onEdit(event) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.getRange(2, 1, 10).setValue(42);
}

关于google-apps-script - 谷歌电子表格 : Set a default value to all the cells in a column with/with out script,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8653565/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com