Excel.WorkbookActivatedEventArgs interface
Proporciona información sobre el libro que generó el evento activado.
Comentarios
[ Conjunto de API: ExcelApi 1.13 ]
Ejemplos
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.");
});
}
Propiedades
| type | Obtiene el tipo del evento. Vea |
Detalles de las propiedades
type
Obtiene el tipo del evento. Vea Excel.EventType para más información.
type: "WorkbookActivated";
Valor de propiedad
"WorkbookActivated"