"Compile error: Automation error" when VBE generates the Worksheet_Change private sub

"Compile error: Automation error" when VBE generates the Worksheet_Change private sub

这里是第一个计时器...

我知道你们中的一些人会因为这样做而想向我扔罐装啤酒,但我正在使用 Excel/VBA 来创建某种动画 GUI 规范:

直到昨天,一切都很好,一切正常(或多或少),今天,当我重新打开我的工作时出现了这个:

为了清楚起见,我正在使用它来生成代码:

使用新的 xlsm 文件,不会发生这种情况。它开始看起来像一个损坏的文件...但是我无法 copy/paste 因此,我无法将所有东西从损坏的文件转移到新文件。

有人 运行 参与过这个吗?

我使用了 VBA 清洁工具。

  1. Excel VBA Code Cleaner 没有成功。
  2. VBA 工具包 Excel 由 Ribbon Commander 提供支持的插件。

现在一切正常。