Skip to content

Instantly share code, notes, and snippets.

@davecra
Created April 3, 2020 01:49
Show Gist options
  • Save davecra/82f112824dbe8bff3ba37675e511b93e to your computer and use it in GitHub Desktop.
Save davecra/82f112824dbe8bff3ba37675e511b93e to your computer and use it in GitHub Desktop.
Hello World Office Scripts Example
async function main(context: Excel.RequestContext) {
// Set range A1 on selectedSheet
let workbook = context.workbook;
let worksheets = workbook.worksheets;
let selectedSheet = worksheets.getActiveWorksheet();
selectedSheet.getRange("A1").values = [
["Hello World"]
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment