Word 宏问题:MsgBox 函数似乎锁定了所有打开的 Word 窗口

发布于 2024-08-20 05:41:03 字数 491 浏览 1 评论 0原文

我有一些在 Word 中运行的宏。我们正在迁移到 Office 2007。

问题:MsgBox 函数似乎锁定了所有打开的 Word 窗口。关于如何解决这个问题有什么想法吗?

(这是一个宏,引导用户通过一系列提示输入用户表单和/或 MsgBoxes 中的信息。)错误显示:

由于对话框已打开,因此无法完成该命令。单击“确定”,然后关闭所有打开的对话框以继续。

有没有办法让Word的每个窗口彼此独立运行?问题是,信息经常从其他打开的 Word 文档中剪切和粘贴,而这不起作用,因为 MsgBox 锁定了 Word 2007 的所有窗口的控制。

宏非常简单,但如果你想看代码,我一定会发布它。基本上,旧版本的 Office 允许您在 Windows 之间切换,而我们正在迁移到的 2007 年则不允许。我已经运行了我能找到的所有更新。任何帮助将不胜感激。

I have some macros that run in Word. We are migrating to Office 2007.

Problem: the MsgBox function appears to lock all open windows of word. Any Ideas on how to get around that?

(It is a macro that walks a user through a bunch of prompts for information that they enter into user forms and or MsgBoxes.) The error says:

The command cannot be completed because a dialog box is open. Click OK then close all open dialog boxes to continue.

Is there any way to have each window of Word act independently of each other? The problem is that the information is frequently cut and pasted from other open Word documents, and this doesn't work as the MsgBox locks control of ALL windows of Word 2007.

The macros are pretty simple, but if you want to see the code, I will certainly post it. Basically, the old version of office let you go between windows, while 2007, that we are migrating to does not. I have run all the updates I could find. Any help would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情深如许 2024-08-27 05:41:03

据我记得,MsgBox 是应用程序模式。也许您可以创建一个小型用户表单来代替 MsgBox?

MsgBox, as far as I recall, is application modal. Perhaps you can create a small user form to use in place of MsgBox?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文