Sheets¶
- class Sheets(impl)¶
A collection of all
sheetobjects:>>> import xlwings as xw >>> xw.sheets # active book Sheets([<Sheet [Book1]Sheet1>, <Sheet [Book1]Sheet2>]) >>> xw.Book('Book1').sheets # specific book Sheets([<Sheet [Book1]Sheet1>, <Sheet [Book1]Sheet2>])
Added in version 0.9.0.
- add(name=None, before=None, after=None)¶
Creates a new Sheet and makes it the active sheet.
- Parameters:
- Returns:
Added sheet object
- Return type:
- async get_active()¶
Returns the active Sheet, fetched live from Excel.
Requires xlwings Lite.
Added in version 0.35.0.