简体   繁体   English

获取系统错误 &H80070057 (-2147024809)

[英]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.

相关问题 运行时错误-2147024809(80070057):调整形状 - runtime error -2147024809 (80070057): Resizing shape clsCommandButton:Microsoft Excel VBA-运行时错误'-2147024809(80070057)' - clsCommandButton: Microsoft Excel VBA - Run-Time Error '-2147024809 (80070057)' 运行时错误“-2147024809(80070057)”指定的值超出范围 - run time error '-2147024809(80070057)' the specified value is out of range 运行时错误'-2147024809(80070057)'具有不稳定的行为 - Run-time error '-2147024809 (80070057)' with erratic behavior 运行时错误2147024809(80070057):找不到指定的对象 - Runtime Error 2147024809 (80070057): Could not find the specified object 运行时错误-2147024809(80070057)指定的值超出形状范围 - run time error -2147024809 (80070057) the specified value is out of range with shape ListBox.Selected无法正常工作; 运行时错误'-2147024809(80070057) - ListBox.Selected is not working; Run-time error '-2147024809(80070057) 更改共享工作簿上的按钮文本:运行时错误“-2147024809 (80070057)” - Changing button text on a shared workbook: Run-Time Error '-2147024809 (80070057)' 将Excel数据导入PowerPoint幻灯片-运行时错误'-2147024809(80070057)':指定的值超出范围 - Importing Excel data into PowerPoint slides - Run-time error '-2147024809 (80070057)': The specified value is out of range 旧代码1004、424,-2147024809中的新运行时错误(80070057) - New run time errors in older code 1004, 424, -2147024809 (80070057)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM