Excel.WorksheetCalculatedEventArgs interface
計算イベントを発生させたワークシートに関する情報を提供します。
注釈
例
async function registerOnCalculatedHandler() {
await Excel.run(async (context) => {
let sheet = context.workbook.worksheets.getItem("Sample");
sheet.onCalculated.add(onCalculated);
await context.sync();
});
}
async function onCalculated(event: Excel.WorksheetCalculatedEventArgs) {
await Excel.run(async (context) => {
// `event.address` returns the address of the range that completed calculation.
// If multiple ranges completed calculation, the string is a comma-separated list of those range addresses.
console.log(`The Range ${event.address} has recalculated.`);
});
}
プロパティ
| type | イベントの種類を取得します。 詳細は「 |
| worksheet |
計算が行われたワークシートの ID を取得します。 |
プロパティの詳細
type
イベントの種類を取得します。 詳細は「Excel.EventType」をご覧ください。
type: "WorksheetCalculated";
プロパティ値
"WorksheetCalculated"