I'm trying to convert a folder of xml that was created by unzipping an excel file back into an excel .xlsx. But I get the error
The workbook cannot be opened or repaired by Microsoft Excel because it is corrupt
A minimal reproducible example to generate this error:
- Create a new blank spreadsheet in Excel
- Enter "test" in cell A1
- Save as
test.xlsx
- Rename file to
test.zip
- Unzip
test.zip
as a folder namedtest
- Compress
test
intotest_new.zip
- Rename
test_new.zip
astest_new.xlsx
- Open
test_new.xlsx
with Excel
For zipping and unzipping I have used 7zip, WinZip and PeaZip, all with the same result. What am I doing wrong, and how can I turn unzipped excel workbooks back into their original form?