对象库无效或包含对不能到的对象定义的引用
删除C:\Documents and Settings\USER\Application Data\Microsoft\Forms\下的所有后缀名为EXD的文件即可。
USER替换为当前用户名
删除C:\Documents and Settings\USER\Application Data\Microsoft\Forms\下的所有后缀名为EXD的文件,然后重新加载宏即可。
没有比发现并解决这个问题更令人高兴。
总结一下:
invalids出现此问题有可能是由于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
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论