xxxxxxxxxx
async function run() {
await Excel.run(async (context) => {
const sheet = context.workbook.worksheets.getActiveWorksheet();
// Single cell
const rowIndex = 1;
const columnIndex = 1;
const cell = sheet.getCell(rowIndex, columnIndex);
cell.values = [["sample"]];
// Range
const range = sheet.getRange("B3:C4");
range.values = [
["a", "b"],
["c", "d"]
];
await context.sync();
});
}