我在工作表中记录了一个宏,希望能够从我的手机运行。我知道我需要为特定单元格创建触发器(onEdit (e)),以便谷歌表格在云中运行宏。我没有编码知识,只有excel。任何帮助深表感谢
问问题
71 次
1 回答
0
在 A1 中输入 x 运行宏 1
function onEdit(e) {//Don't forget the e
var sh=e.range.getSheet();
var name=sh.getName();
if(e.range.getA1Notation()=='A1' && e.value.toLowerCase()=='x') {
e.range.setValue('');//this will reset the value so that it will be ready to accepts another lower case x immediately.
e.source.toast('Hello World.');//You can remove this. It just lets you know that it has run
macro1();
}
}
于 2019-05-24T00:29:03.873 回答