Use VBA to Clear Immediate Window?

前端 未结 16 982
刺人心
刺人心 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:51

    I'm in favor of not ever depending on the shortcut keys, as it may work in some languages but not all of them... Here's my humble contribution:

    Public Sub CLEAR_IMMEDIATE_WINDOW()
    'by Fernando Fernandes
    'YouTube: Expresso Excel
    'Language: Portuguese/Brazil
        Debug.Print VBA.String(200, vbNewLine)
    End Sub
    

提交回复
热议问题