>>>That's an imaginative but (to me) nasty-sounding hack. My guess is it would fail if the XLSX was password-protected, even if it might otherwise work. I understand XLSX is a collection of XML files in a ZIP container (but not compressed?). Even if it's not compressed, if the ZIP container has a checksum then directly modifying its contents without updating the checksum might cause issues.
>
>Yes, xlsx is zipped unlike xls, so while you could unzip/zip xslx (which I recall your xslx class does automatically) we didn't try that.
Are you still using XLS? It's a malware vector, it's been deprecated for over 10 years, Excel itself doesn't like it and no sane mail system will allow them as attachments.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up