This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}
name: 'Data types: Formatted numbers' | |
description: >- | |
This sample shows how to set and get data types using the formatted number | |
properties. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: >- | |
$("#setup").click(() => tryCatch(setup)); |
name: Add binding for selected range | |
description: Adds a new binding for the selected range. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
await Excel.run(async (context) => { |
name: Custom Function returns a Promise | |
description: A custom function which returns a Promise | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
* Async custom function | |
* @customfunction | |
*/ |
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). |
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: 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: 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. |
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |