How to add “custom function help” to a google spreadsheet. - not the script editor

老子叫甜甜 提交于 2019-12-01 04:51:57

This capability was added in May 2014, and the previous Issue 2475 has been closed.

The examples given in Google's Documentation are OK, but you can do more with the jsdoc information than they show.

For example:

/**
 * Return the time that the referenced cell or range was last changed.
 * Initial use shows current time.
 *
 * @param {Sheet3!B32}  reference  Cell or range to monitor.
 * @returns                        The time the reference was last changed.
 * @customfunction
 */
function lastModified( reference ) {
  // Surprise - we don't actually care what has changed!
  return( new Date() );
}

I covered this with more detail and examples in my blog.

Seeing that there is no documentation on this, I would assume that this functionality is not possible. Consider looking for an existing request for this on the Issue Tracker and if not, make a feature request! I'm sure you're not the only one who would like to see this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!