craig159753
New Member
- Joined
- Apr 21, 2015
- Messages
- 24
Hi all, I have an EXCEL workbook which is created by running some VBA. Recently when I create the file it sometimes generates perfectly but once I save, close and go to re-open I am told the file is corrupt and needs to be repaired, the message upon opening states
"EXCEL was able to open the file by repairing or removing the unreadable content.
The file does get repaired and I can see from the repaired log which sheet is the problem sheet i.e. Sheet2. After sheet2 is "repaired" sheet2 has lost the custom widths, conditional formats, frozen cells and data filter option.
Now I want to resolve this problem. I have managed to change the file name of the corrupt file to have a suffix of .ZIP and extracted the Sheet2.xml file. Then using the repaired file done the same, i.e. extracted the repaired Sheet2.xml file. I tried to compare to see if I can see the problem code and no luck.
I don't have any XML editors to use, is there anyway to figure this out? I would attached the file but cannot see an option, I would paste the code but it is rather large
Thanks
Craig
"EXCEL was able to open the file by repairing or removing the unreadable content.
Repaired Part: /xl/worksheet/sheet2.xml part."
The file does get repaired and I can see from the repaired log which sheet is the problem sheet i.e. Sheet2. After sheet2 is "repaired" sheet2 has lost the custom widths, conditional formats, frozen cells and data filter option.
Now I want to resolve this problem. I have managed to change the file name of the corrupt file to have a suffix of .ZIP and extracted the Sheet2.xml file. Then using the repaired file done the same, i.e. extracted the repaired Sheet2.xml file. I tried to compare to see if I can see the problem code and no luck.
I don't have any XML editors to use, is there anyway to figure this out? I would attached the file but cannot see an option, I would paste the code but it is rather large
Thanks
Craig