This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Worksheet protection event | |
| description: Create a new snippet from a blank template. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#run").click(() => tryCatch(run)); | |
| $("#protect").click(() => tryCatch(protect)); | |
| $("#unprotect").click(() => tryCatch(unprotect)); | |
| $("#run2").click(() => tryCatch(run2)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Worksheet protection event | |
| description: Create a new snippet from a blank template. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#run").click(() => tryCatch(run)); | |
| $("#protect").click(() => tryCatch(protect)); | |
| $("#unprotect").click(() => tryCatch(unprotect)); | |
| $("#run2").click(() => tryCatch(run2)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: addSVG test | |
| 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) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: workbook onActivated event | |
| description: Create a new snippet from a blank template. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#run").click(() => tryCatch(run)); | |
| async function run() { | |
| await Excel.run(async (context) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: DelayForCellEdit - Timer | |
| description: Performs a basic Excel API call using plain JavaScript & Promises. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| let val; | |
| const refresh = async () => { | |
| console.log("change detected"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Origin SAP: Issue with document settings' | |
| description: Issue with document settings | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#save").click(() => tryCatch(save)); | |
| $("#read").click(() => tryCatch(read)); | |
| async function save() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PartnerCall-onFormulaChanged Event | |
| description: Performs a basic Excel API call using TypeScript. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: "$(\"#run\").click(() => tryCatch(run));\n\nasync function run() {\n await Excel.run(async (context) => {\n registerOnFormulaChangedHandler();\n\n });\n}\n\nasync function registerOnFormulaChangedHandler() {\n Excel.run(async function (context) {\n const ws = context.workbook.worksheets;\n\n let sheet = ws.getActiveWorksheet();\n sheet.onFormulaChanged.add(onFormulaChange);\n await context.sync();\n console.log(\"Added\_a\_worksheet-level\_formula changed\_event\_handler sucessfully.\");\n });\n}\n\nasync function onFormulaChange(event) {\n await Excel.run(async (context) => {\n console.log(event);\n });\n}\n\n\n/** Default helper for invoking an action and handling errors. */\nasync function tryCatch(callback) {\n try {\n await callback();\n } catch (error) {\n // Note: In a production add-in, you'd want to notify the user throug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: onChanged on merged cells | |
| description: Uses the onChanged event of a table to determine the specifics of changes. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: > | |
| $("#setup").click(() => tryCatch(setup)); | |
| $("#register-handler").click(() => tryCatch(registerChangeEventHandler)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deloitte Add Shape | |
| description: Uses the onChanged event of a table to determine the specifics of changes. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: > | |
| $("#setup").click(() => tryCatch(setup)); | |
| $("#register-handler").click(() => tryCatch(registerChangeEventHandler)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Data change event details | |
| description: Uses the onChanged event of a table to determine the specifics of changes. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: > | |
| $("#setup").click(() => tryCatch(setup)); | |
| $("#register-handler").click(() => tryCatch(registerChangeEventHandler)); |
NewerOlder