如何使用 Modals 查看 Excel 文件中的 Excel 源代码

How to view Excel source code in an Excel file with Modals

我启用了开发者工具栏并启用了宏。

然而,我想打开的 excel 文件会立即打开一个模式弹出窗口,以防止单击任何其他选项。我可以从该模态 window 导航其他模态,但我无法查看它的源代码,因为模态 window 一直处于打开状态,无法单击开发人员工具栏来查看VBA 代码。即使 VBA 快捷键 Alt-F11 在模态 window 显示时也不起作用。

显然以下方法有效:

If its a standard UserForm shown by the Workbook_Open event, hold down Shift while you open the file, This should disable the event.

– chris neilsen Mar 29 '16 at 0:28