Excel.WorkbookActivatedEventArgs interface
Stellt Informationen zu der Arbeitsmappe bereit, die das aktivierte Ereignis ausgelöst hat.
Hinweise
Beispiele
async function registerEventHandler() {
await Excel.run(async (context) => {
// Register the workbook activated event handler.
const workbook = context.workbook;
workbook.onActivated.add(workbookActivated);
await context.sync();
});
}
async function workbookActivated(event: Excel.WorkbookActivatedEventArgs) {
await Excel.run(async (context) => {
// Callback function for when the workbook is activated.
console.log("The workbook was activated.");
});
}
Eigenschaften
| type | Ruft den Typ des Ereignisses ab. Weitere Informationen finden Sie unter |
Details zur Eigenschaft
type
Ruft den Typ des Ereignisses ab. Weitere Informationen finden Sie unter Excel.EventType .
type: "WorkbookActivated";
Eigenschaftswert
"WorkbookActivated"