No permission to call msgBox in Google Apps Scripting

后端 未结 1 562
借酒劲吻你
借酒劲吻你 2020-11-29 14:29

I\'m having trouble running even the simplest Google Apps Scripts, for instance when I run this script by setting a cell my spreadsheet to =pantsHate(Y) I\'m ge

相关标签:
1条回答
  • 2020-11-29 14:56

    Custom functions will do nothing but return a value to a cell in which they reside unless the return an array which may affect contiguous cells.

    A custom function cannot initiate a message box(Browser.msgbox())

    A custom function is a function entered as all or part of a formula in a spreadsheet cell that calls a function from the script editor. When you state:

    for instance when I run this script by setting a cell my spreadsheet to =pantsHate(Y) I'm getting this error:

    =pantsheet(Y) is a custom function because you are calling it from a spreadsheet formula and it cannot initiate a Browser.msgbox()

    0 讨论(0)
提交回复
热议问题