今天,出乎意料的是,我工作的公司使用的表单的按钮突然出现了问题。奇怪的是,它只会影响我确信是 ActiveX 命令按钮的部分,而不会导致其他形状或下拉菜单出现问题。
这个问题。按钮没有反应。当您单击时,他们不会访问代码,通过形状菜单检查它们并选择“查看代码”会使他们打开开发人员菜单,但不会打开与其关联的代码。真正的大问题是,由于某种原因,它们似乎同时开始失败。服务器上的版本(主副本)、用户使用的副本(因破坏东西而臭名昭著)和我使用的版本(位于我的本地计算机上)不再有效。
有没有办法让它们与正确的代码重新关联,而不需要完全删除它们重新制作它们,或者是否有人遇到了同样的问题并找到了解决方案?
我非常感谢任何建议或帮助 - 请注意:我 99.9% 确定该问题不是基于代码的。
最佳答案
该问题是由最近的 Office 更新引起的。这是发布在 http://excelmatters.com/2014/12/10/office-update-breaks-activex-controls/ 上的修复程序
To fix it, do this:
- Close all Office applications.
- Do a search in Windows Explorer – make sure to include hidden and system files and folders – for *.exd files (note: that’s not *.exe !!) and delete any you find. Make sure you get these: C:\users\username\AppData\Local\Temp\Excel8.0\MSForms.exd C:\users\username\AppData\Local\Temp\VBE\MSForms.exd
- Reboot the computer (this is not always necessary, but probably better safe than sorry)
- Restart your Office apps and test the controls again.
关于Excel 2007 问题 : Pre-programmed Buttons suddenly not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27434382/