This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
name: Daedalus | |
description: '' | |
author: akrantz | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(main)); | |
const BatchFunction = function (workbook: Excel.Workbook): Promise<any> { return Promise.resolve() }; |
name: cancelable function | |
description: '' | |
host: EXCEL | |
api_set: {} | |
script: | |
content: |- | |
/** | |
* An example of a cancelable function | |
* @customfunction | |
*/ |
name: functions - return type (implicit) | |
description: '' | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
* @customfunction | |
*/ | |
function returnsBoolean() { |
name: functions - return type (TypeScript) | |
description: '' | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
* @customfunction | |
*/ | |
function returnsBoolean(): boolean { |
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
name: Streaming function that returns a 2D array of numbers | |
description: >- | |
A streaming function that continuously pushes incremental values into an | |
array. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: >- | |
/** | |
* Increments a value once a second. |
name: underscore | |
description: Can custom function id contain an underscore? | |
host: EXCEL | |
api_set: {} | |
script: | |
content: |- | |
/** | |
* @customfunction | |
*/ | |
function add_numbers(first: number, second: number): number { |
name: Repeating parameters | |
description: Sample functions that use repeating parameters. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
await Excel.run(async (context) => { |
name: Custom Function SUM() | |
description: Implement the SUM() function in JavaScript. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
* The sum of all of the numbers. | |
* @customfunction | |
* @param number1 A number (such as 1 or 3.1415), a cell address (such as A1 or $E$11), or a range of cell addresses (such as B3:F12). |