5
我试图让下面的函数从电子表格单元格调用它的工作:如何将电子表格中的单元参数作为范围传递给custum函数?
=IsFormula(A1)
function IsFormula(aCell) {
return cell.getFormula().length != 0
}
我该怎么办?
德罗尔
我试图让下面的函数从电子表格单元格调用它的工作:如何将电子表格中的单元参数作为范围传递给custum函数?
=IsFormula(A1)
function IsFormula(aCell) {
return cell.getFormula().length != 0
}
我该怎么办?
德罗尔
自定义函数只能访问单元格的值,而不是Range对象本身。在你的情况下,aCell将包含单元格的值,这对你的用例不起作用。
有一个[类似的问题](http://stackoverflow.com/questions/12206399/passing-cell-references-to-spreadsheet-functions)。 – megabyte1024
http://stackoverflow.com/questions/12206399/passing-cell-references-to-spreadsheet-functions – HardScale