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>

Added in version 0.9.0.

property api

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

Added in version 0.9.0.

delete()

Deletes the name.

Added in version 0.9.0.

property name

Returns or sets the name of the name object.

Added in version 0.9.0.

property refers_to

Returns or sets the formula that the name is defined to refer to, in A1-style notation, beginning with an equal sign.

Added in version 0.9.0.

property refers_to_range

Returns the Range object referred to by a Name object.

Added in version 0.9.0.