When you load your book with use_iterators=True , then _set_optimized_read() on the Workbook object, which makes it load read-only.
So with the following code:
from openpyxl.reader.excel import load_workbook book = load_workbook('t.xlsx', use_iterators=False)
Creates a file called my_excel_file.xlsx and the following output:
['Data', 'Feuil2', 'Feuil3'] ['Data', 'Feuil2', 'Feuil3', 'Test']
Hope this helps
source share