且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Word VBA 中使用 Application.Run 传递参数

更新时间:2023-10-13 13:35:34

这似乎是 Word 的长期问题.

This appears to be long-standing problem with Word.

正如 KB190235 建议:

原因:
您已将模板名称作为 Macroname 参数字符串的一部分.

Cause:
You have included a template name as part of the Macroname argument string.

分辨率:
从 Macroname 参数中删除模板名称.

Resolution:
Remove the template name from the Macroname argument.

解决方法:
为避免引用项目之间的命名冲突,请为您的过程指定唯一名称,以便您可以在不指定项目或模块的情况下调用过程.

Workaround:
To avoid naming conflicts among referenced projects, give your procedures unique names, so that you can call a procedure without specifying a project or module.