首先必须关闭或隐藏顶端模型表单(错误 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈