bugs: insert_cols changes merge-cells and styles

Issue #1098 duplicate
Benny Think. created an issue

Hi there, I tried to insert a column into an excel.

CODE:

import openpyxl

wb = openpyxl.load_workbook('xt3.xlsx')
sheet = wb.worksheets[0]

sheet.insert_cols(0)
wb.save("filename.xlsx")

However, the style of cells has been changed. Check the pic. bug.png

Attachment is the sample excel file.

Many thanks!

Comments (1)

  1. Log in to comment