Use VBA to Clear Immediate Window?

前端 未结 16 958
刺人心
刺人心 2021-01-30 00:19

Does anyone know how to clear the immediate window using VBA?

While I can always clear it myself manually, I am curious if there is a way to do this programmatically.

16条回答
  •  盖世英雄少女心
    2021-01-30 00:34

    If you happen to be using Autohotkey here's the script I use.

    The key command is Ctrl+Delete. It only works if the VBE is active.
    When pressed it will clear the immediate window and then activate the code editor, via F7.

    I tend to want to clear the immediate when while I'm coding so now I can just hit Ctrl-Delete and keep coding.

提交回复
热议问题