|
本帖最后由 守柔 于 2012-4-13 09:29 编辑
没有比发现并解决这个问题更令人高兴。
总结一下:
出现此问题有可能是由于Office更新所致。
故障现象往往发生在复杂VBA程序所在的工作簿中,所谓复杂主要指引用了多种控件,特别是ListView等。此类工作簿打开后无法保存,关闭时出现“对象库无效或者包含对不能找到的对象的引用”错误;在VBE中,无法通过编译,总是提示对象库或者对象引用方面的错误。
Win7+Office 2010下的处理方式:
删除“C:\Users\shourou\AppData\Roaming\Microsoft\Forms”下的所有下的所有EXD文件;
删除“C:\Users\用户名\AppData\Local\Temp\VBE”下的所有EXD文件;
注意,应该同时删除上述两个文件夹中的EXD文件而非仅仅是Forms文件夹中的EXD文件。
如果还未能解决问题,还要检查一下“C:\Users\shourou\AppData\Local\Temp\Excel8.0”文件夹下的EXD文件。
附上源文:
You install this security update on a computer that has a third-party software solution installed. The software solution is based on Microsoft Visual Basic for Applications (VBA). The software solution creates an instance of the control directly through Microsoft Office. In this scenario, the control may not load in your solution.
To resolve this issue, delete the cached versions of the control type libraries (extender files) on the client computer. To do this, search your hard disk for files that have the ".exd" file name extension and delete all the .exd files that you find. These .exd files will be re-created automatically when you use the new controls the next time that you use VBA. These extender files will be under the user's profile and may also be in other locations, such as the following:
C:\documents and settings\username\Application Data\Microsoft\Forms
C:\documents and settings\username\AppData\Local\Temp\VBE
http://support.microsoft.com/KB/2598039
|
|