skip to Main Content

Javascript – Excel Office Script setInterval not working

I want to recalculate an Excel worksheet every 1 second using Office Script. Here is my failed attempt. function sendMessage(sheet: ExcelScript.Worksheet) { console.log('hi'); sheet.calculate(true); } function main(workbook: ExcelScript.Workbook) { let sheet = workbook.getActiveWorksheet(); setInterval(sendMessage, 1000, sheet); } Nothing printed at…

VIEW QUESTION
Back To Top
Search