简体   繁体   English

Excel 文件损坏

[英]Excel file getting corrupted

When I save a file with macros in office 2019 it gets corrupted.当我在 Office 2019 中保存带有宏的文件时,它会损坏。 If I recover it it will remove all listobjects, shapes, etc... If I recover it in excel 2013 it will remove just validation lists.如果我恢复它,它将删除所有列表对象、形状等...如果我在 excel 2013 中恢复它,它将只删除验证列表。 Is there a way to trace opening and determine what is causing the problems?有没有办法追踪打开并确定导致问题的原因? I can also upload excel file if anyone is interested to take a look at in...如果有人有兴趣看一下,我也可以上传 excel 文件...

Edit: https://www.dropbox.com/s/np02i4dhkrw9trh/SQLDB%20%E2%80%93%20ZA%20KALKULACIJE.xlsm?dl=0编辑: https ://www.dropbox.com/s/np02i4dhkrw9trh/SQLDB%20%E2%80%93%20ZA%20KALKULACIJE.xlsm?dl=0

In this file if you add validation list at Sheet1 to "Baza Podatkov" and then save and reopen it will corrupt the file.在此文件中,如果您将 Sheet1 中的验证列表添加到“Baza Podatkov”,然后保存并重新打开,它将损坏文件。

Corrupt Excel files is a common and known issue (when using the xlsx or xlsm format).损坏的 Excel 文件是一个常见的已知问题(使用xlsxxlsm格式时)。 Once a file was corrupted never trust Excel if it tells you it could be repaired.一旦文件损坏,如果 Excel 告诉您它可以修复,请不要相信它。 In most cases the file stays somehow corrupted (even if it tells you it was successfully repaired).在大多数情况下,文件会以某种方式损坏(即使它告诉您已成功修复)。 Don't trust this file anymore.不要再相信这个文件了。 Start a new file, copy over the data and macros using copy/paste.开始一个新文件,使用复制/粘贴复制数据和宏。

I recommend to save the files (especially if they contain big data) in the binary xlsb format.我建议以二进制xlsb格式保存文件(尤其是当它们包含大数据时)。 This is known to be much more staple than xlsx or xlsm and furthermore it produces much smaller files.众所周知,这比xlsxxlsm更主要,而且它生成的文件要小得多。 Give it a try.试试看。

Ok I've found that I was adding items to list without using comma or something.好的,我发现我在不使用逗号或其他东西的情况下将项目添加到列表中。 Still weird that it didn't work.仍然很奇怪它不起作用。

When I save a file with macros in office 2019 it gets corrupted.当我在 Office 2019 中保存带有宏的文件时,它会损坏。 If I recover it it will remove all listobjects, shapes, etc... If I recover it in excel 2013 it will remove just validation lists.如果我恢复它,它将删除所有列表对象、形状等...如果我在 excel 2013 中恢复它,它将只删除验证列表。 Is there a way to trace opening and determine what is causing the problems?有没有办法跟踪开放并确定导致问题的原因? I can also upload excel file if anyone is interested to take a look at in...如果有人有兴趣查看,我也可以上传 excel 文件...

Edit: https://www.dropbox.com/s/np02i4dhkrw9trh/SQLDB%20%E2%80%93%20ZA%20KALKULACIJE.xlsm?dl=0编辑: https://www.dropbox.com/s/np02i4dhkrw9trh/SQLDB%20%E2%80%93%20ZA%20KALKULACIJE.xlsm?dl=0

In this file if you add validation list at Sheet1 to "Baza Podatkov" and then save and reopen it will corrupt the file.在此文件中,如果您将 Sheet1 中的验证列表添加到“Baza Podatkov”,然后保存并重新打开,它将损坏文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM