Sheets
- class Sheets
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>])
在 0.9.0 版本加入.
- property active: Sheet
返回活动的工作表(Sheet)。
- add(name=None, before=None, after=None)
Creates a new Sheet and makes it the active sheet. Returns the added sheet.