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.
Just checked in Excel 2016 and this piece of code worked for me:
Sub ImmediateClear() Application.VBE.Windows("Immediate").SetFocus Application.SendKeys "^{END} ^+{HOME}{DEL}" End Sub