selection property is a List

Issue #1066 resolved
arkan1313
created an issue

I just found a problem when trying to get the active_cell parameter.

MyDataSheet.active_cell

/usr/local/var/pyenv/versions/3.7.0/lib/python3.7/site-packages/openpyxl/worksheet/worksheet.py in active_cell(self)
    173     @property
    174     def active_cell(self):
--> 175         return self.sheet_view.selection.activeCell
    176
    177     @property

AttributeError: 'list' object has no attribute 'activeCell'

Looking at the code openpyxl/worksheet/worksheet.py, the property functions around lines 170-175 (selected_cell and active_cell) are missing that "selection" is a list

Comments (2)

  1. Log in to comment