Fix Excel Repaired Worksheet Properties Errors
Question details
The user is attempting to diagnose a file repair prompt in Excel that states 'Repaired records: Worksheet properties from /xl/worksheets/sheet1.xml part,' which occurs despite the file functioning normally in other software.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Opening a generated or modified XLSX workbook that contains customized XML elements.
- Observed behavior
- Excel displays a repair dialog upon opening and removes the worksheet properties. The issue is traced to an excessively long or invalid codeName attribute in the file's XML structure.
Always create a backup copy of your original XLSX file before extracting and modifying its internal XML structural files.
Manually Edit the Worksheet XML CodeName
Extract the XLSX archive and manually shorten the codeName attribute in the worksheet XML to bypass Excel's strict validation limits.
Excel uses a strict character limit for the worksheet codeName attribute (often utilized for VBA object naming). If the codeName exceeds approximately 22 characters or contains non-printable characters, Excel will flag the file as corrupted and strip the worksheet properties upon opening.
Locate your problematic .xlsx file in File Explorer and rename the extension from .xlsx to .zip. If you cannot see file extensions, enable 'File name extensions' under the View tab.
Right-click the newly renamed .zip file and select 'Extract All...' to unpack the internal XML contents into a new folder.
Navigate to the extracted folder, open the 'xl' folder, and then open the 'worksheets' folder. Locate the file named 'sheet1.xml' (or the specific sheet identified in your repair log).
Open the XML file using a basic text editor like Notepad. Search for the '<sheetPr' element. Look for the 'codeName=' attribute inside this tag and shorten its value to under 22 characters containing only standard ASCII letters.
Save your changes to the XML file. Select all the extracted files and folders, right-click, and choose 'Compress to ZIP file'. Finally, rename the new ZIP archive's extension back to .xlsx.

Resave the Workbook Using Alternative Software
Use a more fault-tolerant spreadsheet program to open the file and resave it, which rebuilds the internal XML properties correctly.
Seamlessly Open and Edit Spreadsheets with WPS Office
Struggling with Excel's strict XML validation rules and frustrating repair loops? WPS Office offers a highly compatible and resilient alternative that easily handles files with minor XML anomalies, allowing you to open, view, and edit complex XLSX files effortlessly without unexpected data loss.
- 1. Download and Install: Visit the official website to download WPS Office for free and complete the quick installation.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheets and open your problematic XLSX files directly, bypassing strict XML repair warnings.
- 3. Save and Export: Edit your data as usual. When you save, WPS automatically optimizes structural integrity while maintaining broad format compatibility.

Frequently Asked Questions
What causes the 'Repaired records: Worksheet properties' error in Excel?
This error is typically triggered when Excel attempts to parse the internal XML of an XLSX file and encounters a 'codeName' attribute within the '<sheetPr>' element that is invalid, contains non-ASCII characters, or exceeds Excel's strictly enforced character limit.
Is there a character limit for the codeName attribute in Excel?
Yes. While standard user-facing sheet names allow up to 31 characters, the backend codeName attribute—which is heavily tied to VBA object identification—frequently triggers XML repair errors if it exceeds 22 characters.
How can I view the details of an Excel repair log?
When Excel repairs a corrupted file, it opens a summary dialog window. Clicking the hyperlink provided in this dialog will open an XML-based log file in your web browser, detailing exactly which paths (like '/xl/worksheets/sheet1.xml') were discarded or repaired.
Why does my XLSX file open perfectly in other programs but fail in MS Excel?
Different spreadsheet applications utilize distinct XML parsing engines. Microsoft Excel employs exceptionally strict validation rules for OpenXML documents—especially regarding properties that interact with VBA—whereas alternative suites are often designed to be more tolerant of minor structural variances.




