Names¶
- class Names(impl)¶
A collection of all
nameobjects in the workbook:>>> import xlwings as xw >>> book = xw.books['Book1'] # book scope and sheet scope >>> book.names [<Name 'MyName': =Sheet1!$A$3>] >>> book.sheets[0].names # sheet scope only
Added in version 0.9.0.
- add(name, refers_to)¶
セル範囲に新しい名前を定義します。
- パラメータ:
name (str) -- 名前として使う文字列を指定します。名前にスペースを含めることはできません。またセルを参照することもできません。
refers_to (str) -- A1形式で名前の参照先を指定します。
Added in version 0.9.0.
- property api: Any¶
Returns the native object (
pywin32orappscriptobj) of the engine beingused.Added in version 0.9.0.
- property count: int¶
コレクションに含まれるオブジェクトの数を返します。