Am .06.2017, 17:08 Uhr, schrieb Gar Thompson <
gar...@gmail.com>:
> I'm using v2.4.5. I've tried on v2.4.8 also, with the same results.
I think there may be something wrong with your installation as I cannot
reproduce the problem on my machine and it is the structure of the
styles.xml which is broken.
You should be able to check this by inspecting wb.named_styles, the full
definition is in wb._named_styles
The following works for me with 2.4 & 2.5
from decimal import Decimal
from openpyxl import load_workbook
wb = load_workbook('Issues/test-template.xlsx')
cell = wb.active.cell(row=1, column=1)
cell.value = Decimal('1234.567')
cell.style = 'test_style'
wb.save("Issues/test-25.xlsx")