Excel 2007 问题 : Pre-programmed Buttons suddenly not working

标签 excel vba button command

今天,出乎意料的是,我工作的公司使用的表单的按钮突然出现了问题。奇怪的是,它只会影响我确信是 ActiveX 命令按钮的部分,而不会导致其他形状或下拉菜单出现问题。

这个问题。按钮没有反应。当您单击时,他们不会访问代码,通过形状菜单检查它们并选择“查看代码”会使他们打开开发人员菜单,但不会打开与其关联的代码。真正的大问题是,由于某种原因,它们似乎同时开始失败。服务器上的版本(主副本)、用户使用的副本(因破坏东西而臭名昭著)和我使用的版本(位于我的本地计算机上)不再有效。

有没有办法让它们与正确的代码重新关联,而不需要完全删除它们重新制作它们,或者是否有人遇到了同样的问题并找到了解决方案?

我非常感谢任何建议或帮助 - 请注意:我 99.9% 确定该问题不是基于代码的。

最佳答案

该问题是由最近的 Office 更新引起的。这是发布在 http://excelmatters.com/2014/12/10/office-update-breaks-activex-controls/ 上的修复程序

To fix it, do this:

  1. Close all Office applications.
  2. 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
  3. Reboot the computer (this is not always necessary, but probably better safe than sorry)
  4. Restart your Office apps and test the controls again.

关于Excel 2007 问题 : Pre-programmed Buttons suddenly not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27434382/

相关文章:

excel - 与文本和标点符号动态范围连接

ios - 为什么按钮未启用?

button - 如何在 QML 中设置 MessageDialog 的默认按钮?

excel - 查找并计算 A 列中名称的每次出现,然后从 B 列读取值

excel - VBA循环更新列中每个单元格的超链接

excel - 找不到存在的工作表

vba - 从列标题填充列表框的标题

vba - 在 VBA 中启用字典对象

java - 发送网格 : How to set dynamic link value of a button

arrays - 使用第二维重新调整现有数组?