Skip to content

Instantly share code, notes, and snippets.

@jiju-MS
jiju-MS / Blank snippet.EXCEL.yaml
Created April 16, 2019 07:10
Create a new snippet from a blank template.
name: Blank snippet
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#group").click(() => tryCatch(group));
$("#ungroup").click(() => tryCatch(ungroup));
$("#showdetails").click(() => tryCatch(showdetails));
$("#hidedetails").click(() => tryCatch(hidedetails));
@jiju-MS
jiju-MS / Group&UnGroup.EXCEL.yaml
Last active April 16, 2019 07:21
Create a new snippet from a blank template.
name: Group&UnGroup
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#group").click(() => tryCatch(group));
$("#ungroup").click(() => tryCatch(ungroup));
$("#showdetails").click(() => tryCatch(showdetails));
$("#hidedetails").click(() => tryCatch(hidedetails));
@jiju-MS
jiju-MS / Group&UnGroup (1).EXCEL.yaml
Last active September 26, 2019 09:19
Create a new snippet from a blank template.
name: Group&UnGroup (1)
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#group").click(() => tryCatch(group));
$("#ungroup").click(() => tryCatch(ungroup));
$("#showdetails").click(() => tryCatch(showdetails));
$("#hidedetails").click(() => tryCatch(hidedetails));
@jiju-MS
jiju-MS / Hide&UnHide.EXCEL.yaml
Last active May 23, 2019 06:17
Create a new snippet from a blank template.
name: Hide&UnHide
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: >
$("#run").click(() => tryCatch(run));
$("#test").click(() => tryCatch(test));
@jiju-MS
jiju-MS / Binding.EXCEL.yaml
Created April 28, 2019 02:20
Create a new snippet from a blank template.
name: Binding
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#add").click(() => tryCatch(run));
$("#delete").click(() => tryCatch(del));
async function run() {
await Excel.run(async (context) => {
@jiju-MS
jiju-MS / Basic custom function (1).EXCEL.yaml
Created September 18, 2019 02:38
Calculates the volume of a sphere.
name: Basic custom function (1)
description: Calculates the volume of a sphere.
host: EXCEL
api_set: {}
script:
content: |
/**
* Calculates the volume of a sphere.
* @customfunction
* @param {number} radius
@jiju-MS
jiju-MS / Blank snippet (6).EXCEL.yaml
Last active October 11, 2019 07:00
Create a new snippet from a blank template.
name: Blank snippet (6)
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
var fontSize;
var numFmt;
var fillColor = "#FFFFFF";
var fontColor;
name: Return Error
description: ''
host: EXCEL
api_set: {}
script:
content: |-
/**
* Calculates the volume of a sphere.
* @customfunction
* @param {any} res
@jiju-MS
jiju-MS / Return Error Demo(Stock).EXCEL.yaml
Created November 12, 2019 06:29
Calculates the volume of a sphere.
name: Return Error Demo(Stock)
description: Calculates the volume of a sphere.
host: EXCEL
api_set: {}
script:
content: |-
/**
* Calculates the volume of a sphere.
* @customfunction
* @param {string | number} res
/**
* CustomFunction Return Error
* @customfunction
* @param {number} errorCase
* @returns error
*/
function customErrorReturn(errorCase) {
switch (errorCase) {
case 1: {
var error = new CustomFunctions.Error(