Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Worksheet from xlsx File #255

Closed

Conversation

KamalJourieh
Copy link

As workaround for this issue https://github.com/felipenoris/XLSX.jl/issues/80. Two functions were created that operate based on either the sheet's name or its ID. These functions will generate a new file while leaving the original file unchanged, with the new file containing only the remaining worksheets. However, it's important to note that when a worksheet is eliminated, the new file will not retain the original data types, cell formatting, or inter-sheet relationships.

@felipenoris
Copy link
Owner

felipenoris commented Apr 18, 2024

Hi @KamalJourieh !
Thanks for your contribution!
I read your code. Unfortunately, this solution seems a bit unreliable. You're doing a copy/paste of the data into a new file, based on each worksheet dimension (get_dimension). While this might work for many cases, I would recommend keeping this outside of the package, maybe for usage in scripts. For this package, I would recommend something based on the XML level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants