Name

class Name(impl)

The name object is a member of the names collection:

>>> import xlwings as xw
>>> sht = xw.books['Book1'].sheets[0]
>>> sht.names[0]  # or sht.names['MyName']
<Name 'MyName': =Sheet1!$A$3>

在 0.9.0 版本加入.

property api: Any

Returns the native object (pywin32 or appscript obj) of the engine being used.

在 0.9.0 版本加入.

delete()

删除名称。

在 0.9.0 版本加入.

property name: str

返回或者设置命名对象的名称。

在 0.9.0 版本加入.

property refers_to: str

返回或者设置名称引用的公式,公式以等号开头,采用 A1表示法

在 0.9.0 版本加入.

property refers_to_range: Range

返回命名对象引用的区域对象。

在 0.9.0 版本加入.