且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Excel错误:已删除记录:从/xl/worksheets/sheet10.xml部分排序

更新时间:2022-10-15 12:29:09

我恐怕不能解释发生了什么,但是我有相似的经历多次 - 总是用XLSM文件。在最新的情况下,我了解到,Excel不喜欢使用两次相同的范围名称,当定义为工作表范围名称(我们认为可以安全地使用它)。



我们的疑难解答路径是:




  • 尝试将文件保存为XLSB(二进制宏文件),并使用XLSB文件或将其保存回XLSM

  • 检查文件历史记录(我们始终保持每日快照),找到问题出现的时间;使用以前的版本和端口您的更改

  • 提取代码(通过SVN代码),创建一个新的工作簿并导入代码



通常步骤1解决了问题,但步骤3从未让我们失败。


I'm almost sure I will have to create a new excel file, but maybe at least here I get some ideas what was the source of the problem.

My excel file is constantly giving the following error:

Excel found unreadable content in 'filename.xlsm'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.

So I do. And the file opens as repaired showing:

Removed Records: Sorting from /xl/worksheets/sheet10.xml part.

The detail is that I don't even have a sheet10

Its a big excel file full of custom-objects. But I have no DB connections or autofilter so could not relate to AutoFilter Criteria Using Array (Error) - Too Large String? or xlsx error: "Removed Records: Named range from /xl/workbook.xml part" when tried to resolve errors.

Anyone has a clue what's going on?

tks in advance

I am afraid I cannot explain what is going on, but I had similar experience several times - always with XLSM file. In the latest case I learnt that Excel did not like the same range name used twice, when defined as Worksheet range name (we assumed it is safe to use it that way).

Our troubleshooting path is:

  • try to save file as XLSB (binary macro file) and either use XLSB file or save it back to XLSM
  • check file history (we always keep daily snapshots) and find when the problem firstly occurred; use previous version and port your changes
  • extract the code (via SVN code), create a new workbook and import the code back

Usually Step 1 solves the problem, but Step 3 never failed us.