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
在 0.9.0 版本加入.
- add(name, refers_to)¶
为一个单元格组成的区域定义名称。
- 参数:
name (str) -- 指定作为名称的文字。名称中不能包含空格,也不能是单元格的引用。
refers_to (str) -- 使用英语,按照
A1表示法描述名称引用的具体内容
在 0.9.0 版本加入.
- property api: Any¶
Returns the native object (
pywin32orappscriptobj) of the engine beingused.在 0.9.0 版本加入.
- property count: int¶
返回集合中的对象数。