VBA 中 Mac 的 Control + Break 等效项

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16779088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 15:41:24  来源:igfitidea点击:

Control + Break equivalent for Mac in VBA

macosvba

提问by lakesh

If I want to stop my code from executing on a PC, I know I just need to press ctrl+break. But since my Mac has no "break" key I am not sure what to do?

如果我想阻止我的代码在 PC 上执行,我知道我只需要按 ctrl+break。但是由于我的 Mac 没有“break”键,我不知道该怎么办?

What is the equivalent in Mac?

Mac 中的等价物是什么?

回答by Santosh

Use ?.on Mac to stop the code.

?.在 Mac 上使用以停止代码。

回答by Jeff

The ?.or ctrlESCkeys do not function exactly like on the PC. They do not break to the debugger on a modal dialog box. Use ESCESC(Press the ESCtwice) to bring up a dialog that allows you to enter the debugger at the location in code of the dialog box display. Tested in Excel VBA 2011

?.ctrlESC按键不起作用,完全像在PC上。它们不会中断模式对话框中的调试器。使用ESCESC(按ESC两次)打开一个对话框,允许您在对话框显示的代码中的位置输入调试器。在 Excel VBA 2011 中测试

回答by ciso

cntrl-esc works like cntrl-break on my macbook pro to stop Excel vba running under Windows 7.

cntrl-esc 在我的 macbook pro 上像 cntrl-break 一样工作,以停止在 Windows 7 下运行的 Excel vba。

回答by Tim

Apologies for resurrecting this. This is the first result on a google search so I figured I should answer.

为复活这件事道歉。这是谷歌搜索的第一个结果,所以我想我应该回答。

Working in IDEs within a windows VM environment on Mac (eg: Visual Basic for Applications) the command is actually fn+ esc

在 Mac 上的 Windows VM 环境中的 IDE 中工作(例如:Visual Basic for Applications),命令实际上是fn+esc

回答by parul garg

I am working on a Mac. I use Cmd+Option+Escto stop my code.

我在 Mac 上工作。我用Cmd+ Option+Esc停止我的代码。