首先必须关闭或隐藏顶端模型表单(错误 402)

您尝试关闭或隐藏的模式窗体不在 z 顺序的顶层。 此错误具有以下原因和解决方案:

  • Another modal form is higher in the z-order than the modal form you tried to close or hide. First use either the Unload statement or the Hide method on any modal form higher in the z-order. 模式窗体是由 Show 方法显示的窗体 ,样式参数 设置为 1 - vbModal

支持和反馈

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