Unmerged cells are still considered merged and cannot be written

Issue #1228 closed
Guillaume created an issue

When writing into a cell that used to belong to a merged cell, the application throws an error: AttributeError: 'MergedCell' object attribute 'value' is read-only

Sample Excel file contains a unique merged cell [A1:B2]

Error is displayed when the script tries to write into the previously merge cell 'B2' Worksheet.unmerge_cells(start_row=1, start_column=1, end_row=2, end_column=2) Worksheet.cell(2,2).value = "TOTO"

It seems that openpyxl still consider the cells as part of a merged cell.

Comments (3)

  1. Log in to comment