Activates the first window associated with the workbook, bringing it in to focus.
Note: activating a workbook deactivates the currently activated workbook.
Adds a listener for the specified workbook-level event.
Type of the workbook-level event to listen for.
Function called when the specified event occurs.
Adds a listener that is called when the workbook is activated.
Name of the event fired when the workbook is activated.
Listener function called when the event occurs.
Adds a listener that is called when a worksheet is added to the workbook.
Name of the event fired when a worksheet is added to the workbook.
Listener function called when the event occurs.
Adds a listener that is called when the workbook is closed.
Name of the event fired when the workbook is closed.
Listener function called when the event occurs.
Adds a listener that is called when the workbook is deactivated (i.e. another workbook is activated).
Name of the event fired when the workbook is deactivated.
Listener function called when the event occurs.
Adds a listener that is called when a worksheet is deleted from the workbook.
Name of the event fired when a worksheet is deleted from the workbook.
Listener function called when the event occurs.
Adds a new worksheet to the workbook.
The worksheet that was created.
Closes the workbook.
If the workbook has any unsaved changes, Excel displays a "Save" prompt before closing the workbook.
Note: After calling this function, do not attempt to use this workbook or any child worksheet objects. Doing so will likely result in an AdapterError since the underlying object/file is no longer available.
Gets the name of the workbook.
The workbook name.
Gets the value of a property from the Excel PIA Workbook
interface.
Refer to the Workbook
interface properties
documentation for a list of valid property names.
Note: only properties that are a value type or a string are supported and can be retrieved using this function.
The type of the property whose value to get.
The name of the property whose value to get.
The value of the property or null
if the requested property does not exist.
Gets a worksheet with a given name.
The name of the worksheet to get.
The worksheet matching the provided name, or null
if no matching worksheet was found.
Gets all worksheets belonging to the workbook.
All worksheets belonging to the workbook.
Removes a previously added listener for the specified workbook-level event.
Function that was provided as the listener when addEventListener was called.
Saves the workbook to disk.
Saves the workbook to the file path provided.
Full path (including file name) where the workbook should be saved.
Generated using TypeDoc
An object that represents an open workbook in Excel.