简体   繁体   English

停止运行除 ESC / Command + 以外的宏

[英]Stop Running Macro other than ESC / Command +

How do I stop a running macro in Mac Excel 2016 (version 15)?如何在 Mac Excel 2016(版本 15)中停止正在运行的宏?

I tried:我试过了:
Command + .命令 + 。
Esc Esc键
Esc x2退出 x2

Application.EnableCancelKey = xlInterrupt , doesn't make any difference. Application.EnableCancelKey = xlInterrupt ,没有任何区别。

As suggested by jsotola, use DoEvents to have Excel handle keypress, then hold Command + .正如 jsotola 所建议的,使用 DoEvents 让 Excel 处理按键,然后按住Command + 。 to interrupt it.打断它。

Thanks for the help jsotola!感谢您的帮助 jsotola!

Make sure you are on VBA/ExcelVBA window and then Try below steps:确保您在 VBA/ExcelVBA 窗口上,然后尝试以下步骤:

Step 1-- Menu bar -> Run -> Reset步骤 1-- 菜单栏 -> 运行 -> 重置

Step 2-- Menu bar -> Run -> Break步骤 2-- 菜单栏 -> 运行 -> 中断

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM