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
{{ message }}
Repository navigation
Add support for deleting rows (with upward shift) while preserving existing styles #291
I am using XLSX.jl to do partial read-write, I need to delete some rows and make the remaining rows move up (similar to the Excel interface operation: Delete → Entire row), and at the same time want to retain the original cell style, color, bold, merge cells and other information.
Currently, XLSX.jl does not provide such an API. If we do batch processing with code, then we can only read the last line in plain text and fill it with the deleted blank lines. But the style cannot be preserved.
Deleting a row would mean checking all formulas, definedNames, etc, and re-referencing them, wouldn't it? This seems like a rather big job!
I had a use case for inserting rows, but gave it up for this reason.
To add or delete rows while ignoring the consequences (for formulas, etc), wouldn't be too hard, though, just a bit risky!
PR #290 should provide much more convenient ways to manage cell formats (but not to merge cells).
Activity
TimG1964 commentedon Apr 3, 2025
Deleting a row would mean checking all formulas, definedNames, etc, and re-referencing them, wouldn't it? This seems like a rather big job!
I had a use case for inserting rows, but gave it up for this reason.
To add or delete rows while ignoring the consequences (for formulas, etc), wouldn't be too hard, though, just a bit risky!
PR #290 should provide much more convenient ways to manage cell formats (but not to merge cells).
abcdvvvv commentedon Apr 3, 2025
Thank you for your response!
It is indeed a very difficult job, and I'm sorry that the request I made was really inappropriate.
Thank you!
TimG1964 commentedon Nov 14, 2026
I previously suggested that this was too hard.
I was wrong!
The new release, v0.13.4, now implements insert/delete for both rows and columns and correctly handles all the complexities I pointed out previously.
abcdvvvv commentedon Nov 15, 2026
Thank you!