Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在调试这个 VBA 脚本,每次我点击 RESET(蓝色小方块)时,它都会让我退出“代码视图”并让我回到“对象视图”。这真让人生气。有什么方法可以阻止这种行为吗?
截图: 对象视图: 代码视图:
从代码视图而不是用户窗体启动脚本执行将导致 Excel 在结束脚本后返回到代码视图。
你无法改变行为。您可以按F7进入代码视图,这可能会使它稍微不那么烦人。