You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Using InsertCols with formulas to the right of the insert breaks the workbook if the formulas reference a column to the left of the insert.
Steps to reproduce the issue:
Create a workbook with a sheet that contains formulas in column C. The formulas were copied by dragging from the top. The formulas reference column A e.g. =A1 * 5.
Insert a column between A and C, using InsertCols e.g. xl.InsertCols("Sheet1", "B", 1)`
Save the workbook xl.SaveAs("test.xlsx")
Open the workbook in Excel
Describe the results you received:
An error saying that the workbook has been repaired (or in other versions of Excel a dialog suggesting the workbook should be repaired) with the following extra information:
Describe the results you expected:
Workbook opens with no error reported
Output of go version:
go version go1.20.2 linux/amd64
Excelize version or commit ID:
v2.7.1
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
CSHornby
changed the title
Using InsertCols without formulas to the right breaks the workbook
Using InsertCols with formulas to the right breaks the workbook
Jun 30, 2023
Thanks for your issue. This issue has been fix by pull request #1567, please try to upgrade the master branch code, and this patch will be released in the next version.
Description
Using InsertCols with formulas to the right of the insert breaks the workbook if the formulas reference a column to the left of the insert.
Steps to reproduce the issue:
=A1 * 5
.xl.InsertCols("Sheet1",
"B", 1)`xl.SaveAs("test.xlsx")
Describe the results you received:
An error saying that the workbook has been repaired (or in other versions of Excel a dialog suggesting the workbook should be repaired) with the following extra information:
Describe the results you expected:
Workbook opens with no error reported
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: