5

I'm trying to get the following function to work by calling it from a spreadsheet cell:

=IsFormula(A1)

function IsFormula(aCell) {

  return cell.getFormula().length != 0
}

What should I do?

Dror

4

1 回答 1

5

自定义函数只能访问单元格的值,而不是 Range 对象本身。在您的情况下, aCell 将包含单元格的值,这不适用于您的用例。

于 2012-09-26T22:32:45.323 回答