Created
April 3, 2020 01:49
-
-
Save davecra/82f112824dbe8bff3ba37675e511b93e to your computer and use it in GitHub Desktop.
Hello World Office Scripts Example
This file contains 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
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