Use openpyxl to edit a Excel2007 file (.xlsx) without changing its own styles?

后端 未结 2 1405
我在风中等你
我在风中等你 2020-12-03 11:32

I have a .xlsx file to edit, I found openpyxl could manipulate Excel 2007 files. I only want to change the value in some cells and leave other settings unchanged.

Bu

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 11:43

    Now openpyxl cannot handle styles good enough, so I tried using pywin32 COM and got the solution. Here is a good python-excel-mini-cookbook to use pywin32 COM for Excel

提交回复
热议问题