Word 宏问题:MsgBox 函数似乎锁定了所有打开的 Word 窗口
我有一些在 Word 中运行的宏。我们正在迁移到 Office 2007。
问题:MsgBox
函数似乎锁定了所有打开的 Word 窗口。关于如何解决这个问题有什么想法吗?
(这是一个宏,引导用户通过一系列提示输入用户表单和/或 MsgBox
es 中的信息。)错误显示:
由于对话框已打开,因此无法完成该命令。单击“确定”,然后关闭所有打开的对话框以继续。
有没有办法让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 MsgBox
es.) 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我记得,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?