Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Excel.WorkbookActivatedEventArgs interface
- Package:
- excel
Provides information about the workbook that raised the activated event.
Remarks
Used by
Examples
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.");
});
}
Properties
| type | Gets the type of the event. See |
Property Details
type
Gets the type of the event. See Excel.EventType for details.
type: "WorkbookActivated";
Property Value
"WorkbookActivated"
Remarks
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
