This script writes some value into a cell:

  • function main(workbook: ExcelScript.Workbook) {
      let selectedSheet = workbook.getActiveWorksheet();
      selectedSheet.getRange(“A1”).setValue(“123”);
    }