Cell comments not read when using load_workbook

Issue #317 invalid
Vinod Kandasamy
created an issue

Here is some test code:

import openpyxl
wb = openpyxl.Workbook()
wb.active.cell('A1').value = 'hello'
wb.active.cell('A1').comment = openpyxl.comments.Comment('test', 'author')
wb.save('test.xlsx')

wb2 = openpyxl.load_workbook('test.xlsx')
print(wb2.active.cell('A1').value)
print(wb2.active.cell('A1').comment)

Output (with openpyxl 1.8.4):

hello
None

The writer seems to have worked fine: when the spreadsheet 'test.xlsx' is opened using Excel, the comment is present.

Comments (4)

  1. Vinod Kandasamy reporter

    Oops, I thought I had the latest version of openpyxl (I installed it just yesterday and I got version 1.8.4). This issue is not present in openpyxl 2.02 (latest version as of now). Please ignore this bug.

  2. Log in to comment