从 VBA 立即窗口移动到代码窗口的快捷键
我知道我可以使用 Ctrl + G 将光标移动到立即窗口。是否有其他快捷键可以将光标移回代码?
I know I can use Ctrl + G to move the cursor to the immediate window. Is there a different shortcut key to move the cursor back to the code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
假设在Office中使用VBA; F7。
Assuming VBA in Office; F7.
Alt+W、1
Alt+W, 1
对于使用 AutoHotKey 的任何人,我将 Alex K 的解决方案合并到每次登录时运行的 Autohotkey 脚本中:
首先,该脚本创建一个上下文相关的 Ctl + G 热键要求 VBA IDE 成为活动窗口 (
#IfWinActive ahk_class wndclass_desked_gsk
)。当您按 Ctl + G 时,脚本会检查当前控件的标题是否为“Immediate”。如果是,那么它会发送一个 F7 将焦点发送回代码。否则它会重新发出 Ctl + G。
For anyone out there using AutoHotKey, I incorporated Alex K's solution into the Autohotkey script I run whenever I log on:
First, the script creates a context-sensitive Ctl + G hotkey that requires the VBA IDE to be the active window (
#IfWinActive ahk_class wndclass_desked_gsk
).When you press Ctl + G, the script checks to see if the title of the current control is "Immediate". If it is, then it sends an F7 which sends the focus back to the code. Otherwise it reissues the Ctl + G.