无法在设计模式下执行即时语句

设计时执行代码,或代码被挂起并等待继续的任何时间。 此错误具有以下原因和解决方法:

  • You tried to execute a statement in the Immediate window, but your code isn't in a running mode. Start your code running, and then suspend program execution. You can then execute code in the Immediate window.

For additional information, place the cursor in the Immediate window and press F1 (in Windows) or HELP (on the Macintosh).

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。