Skip to content

Instantly share code, notes, and snippets.

@ruijiaMS
ruijiaMS / Image shapes.EXCEL.yaml
Last active October 31, 2023 07:38
Creates and adjusts image-based shapes.
name: Image shapes
description: Creates and adjusts image-based shapes.
host: EXCEL
api_set: {}
script:
content: |
$("#setup").click(() => tryCatch(setup));
$("#selectedFile").change(() => tryCatch(readImageFromFile));
$("#flipImage").click(() => tryCatch(flipImage));
$("#getImageFormat").click(() => tryCatch(getImageFormat));
@ruijiaMS
ruijiaMS / Basic API call (TypeScript) (1).EXCEL.yaml
Created October 31, 2023 07:22
Performs a basic Excel API call using TypeScript.
name: Basic API call (TypeScript) (1)
description: Performs a basic Excel API call using TypeScript.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
await Excel.run(async (context) => {
name: Chart - Find data point with specific xvalue
description: ''
host: EXCEL
api_set: {}
script:
content: >
$("#generateChart").click(() => tryCatch(generateChart));
$("#addDataLabel").click(() => tryCatch(addDataLabel));
name: Chart - Find data point with specific xvalue
description: ''
host: EXCEL
api_set: {}
script:
content: >
$("#generateChart").click(() => tryCatch(generateChart));
$("#addDataLabel").click(() => tryCatch(addDataLabel));
name: Chart - Find data point with specific xvalue
description: ''
host: EXCEL
api_set: {}
script:
content: >
$("#run").click(() => tryCatch(run));
async function run() {
name: Chart - Find data point with specific xvalue
description: ''
host: EXCEL
api_set: {}
script:
content: >
$("#run").click(() => tryCatch(run));
async function run() {
name: Chart - Find data point with specific xvalue
description: ''
host: EXCEL
api_set: {}
script:
content: >
$("#run").click(() => tryCatch(run));
async function run() {