如果我想阻止我的代码在 PC 上执行,我知道我只需要按 ctrl+break。但由于我的 Mac 没有“break”键,我不知道该怎么办?
Mac中的等价物是什么?
利用⌘</kbd>. on Mac to stop the code.
这⌘</kbd> . or ctrl ESC keys do not function exactly like on the PC. They do not break to the debugger on a modal dialog box. Use ESC ESC (Press the ESC twice) 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
cntrl-esc 在我的 macbook pro 上的作用类似于 cntrl-break,以停止在 Windows 7 下运行的 Excel vba。
很抱歉让这个复活。这是谷歌搜索的第一个结果,所以我想我应该回答。
在 Mac 上的 windows VM 环境中的 IDE 中工作(例如:Visual Basic for Applications)该命令实际上是fn+esc
我正在使用 Mac。我使用Cmd++Option来Esc 停止我的代码。