Skip to content

Instantly share code, notes, and snippets.

View MiaofeiWang's full-sized avatar

Miaofei Wang MiaofeiWang

  • Microsoft
View GitHub Profile
@MiaofeiWang
MiaofeiWang / GetSetSettings.yaml
Last active March 22, 2018 03:30
Get and set document settings. - Shared with Script Lab
name: GetSetSettings
description: Get and set document settings.
author: MiaofeiWang
host: WORD
api_set: {}
script:
content: |-
$("#set").click(() => tryCatch(setSetting));
$("#get").click(() => tryCatch(getSetting));
name: Shape - New shape and connector
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
@MiaofeiWang
MiaofeiWang / Shape - Delete shape.yaml
Created April 16, 2018 08:27
Shared with Script Lab
name: Shape - Delete shape
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
@MiaofeiWang
MiaofeiWang / SetSelectedData - Image.yaml
Created April 25, 2018 05:15
Executes a basic Excel API call - Shared with Script Lab
name: SetSelectedData - Image
description: Executes a basic Excel API call
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |-
$("#run").click(run);
function run() {
@MiaofeiWang
MiaofeiWang / Shape - Add Image From File.yaml
Last active April 27, 2018 07:58
Shared with Script Lab
name: Shape - Add Image From File
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
@MiaofeiWang
MiaofeiWang / Shape - Text.yaml
Last active July 23, 2018 05:59
Executes a basic Excel API call - Shared with Script Lab
name: Shape - Text
description: Executes a basic Excel API call
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |-
$("#run").click(() => tryCatch(run));
async function run() {
@MiaofeiWang
MiaofeiWang / Shape - Font.yaml
Last active July 30, 2018 05:05
Shared with Script Lab
name: Shape - Font
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |-
$("#run").click(() => tryCatch(run));
async function run() {
@MiaofeiWang
MiaofeiWang / Shape - Demo.EXCEL.yaml
Last active January 24, 2019 11:11
Executes a basic Excel API call
name: Shape - Demo
description: Executes a basic Excel API call
host: EXCEL
api_set: {}
script:
content: >
$("#InsertShape").click(() => tryCatch(InsertShape));
$("#AddText").click(() => tryCatch(AddText));
@MiaofeiWang
MiaofeiWang / Shape - Vector Image.yaml
Last active August 15, 2018 06:12
Shared with Script Lab
name: Shape - Vector Image
description: ''
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
@MiaofeiWang
MiaofeiWang / Repro Range Set Value Bug.yaml
Last active August 28, 2018 04:24
VSO#2500244 - Shared with Script Lab
name: Repro Range Set Value Bug
description: 'VSO#2500244'
author: MiaofeiWang
host: EXCEL
api_set: {}
script:
content: |
$("#addTable").click(() => tryCatch(addTable));
$("#setFilter").click(() => tryCatch(filter));
$("#select").click(() => tryCatch(select));