[英]Getting System Error &H80070057 (-2147024809)
I've been running a workbook with a few macros in it for a couple of years, and I've suddenly started getting this error thrown at me for some navigational buttons (shapes linked to macros that are simply ThisWorkbook.Sheets("sheet_name").Activate
).几年来我一直在运行一个包含一些宏的工作簿,我突然开始收到一些导航按钮的错误(链接到宏的形状只是
ThisWorkbook.Sheets("sheet_name").Activate
).
Other Macros within the workbook seem to work OK, but I can't get into the VBA editor to see any of the code anymore - I get to the VBA interface, but when I go to open the Module, nothing happens.工作簿中的其他宏似乎工作正常,但我无法进入 VBA 编辑器以查看任何代码 - 我进入 VBA 界面,但是当我 go 打开模块时,没有任何反应。
And to cap it all off, when I try to save the workbook, I'm just getting an error saying 'Document not saved'.最重要的是,当我尝试保存工作簿时,我只是收到一条错误消息,提示“文档未保存”。
I had the same issue.我遇到过同样的问题。 I opened the VBA code module and then selected Debug then Compile VBAProject.
我打开了 VBA 代码模块,然后选择了调试然后编译 VBAProject。 I then closed the Visual Basic Editor and the error seems to have been resolved.
然后我关闭了 Visual Basic 编辑器,错误似乎已经解决。 Have only had the issue the once so can't be 100% sure it will work in every instance but worth a go.
只遇到过一次问题,所以不能 100% 确定它在每种情况下都能正常工作,但值得 go。
Suggest you open a backup copy of this file (if you have one), export the broken module and then in your current file, remove the broken module and import the clean version.建议您打开此文件的备份副本(如果有),导出损坏的模块,然后在当前文件中,删除损坏的模块并导入干净的版本。
We had the same problem in a file that was drawing data from an external source and saving itself automatically every minute.我们在从外部源提取数据并每分钟自动保存自己的文件中遇到了同样的问题。 What worked for us was just replacing the entire file with a backup from 2 days ago.
对我们有用的只是用 2 天前的备份替换整个文件。
We also had the "Document Not Saved" error, which was solved by upgrading the file from.xls to.xlsx我们还遇到了“文档未保存”错误,通过将文件从.xls 升级到.xlsx 解决了这个错误
Just came across this error - for me it seems to affect any code opening docs via external links.刚刚遇到这个错误 - 对我来说,它似乎会影响任何通过外部链接打开文档的代码。 Ran the debug suggested above and fixed issue.
运行上面建议的调试并解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.